﻿/* KaniKian Rent — staff login panel */
:root {
  --accent: #ea580c;
  --accent-dark: #9a3412;
  --accent-glow: rgba(234, 88, 12, 0.35);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.login-page {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 100% 70% at 85% 10%, rgba(234, 88, 12, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 5% 90%, rgba(13, 148, 136, 0.12), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1c1917 45%, #0c0a09 100%);
  min-height: 100vh;
}

/* Top bar */
.login-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), transparent);
  backdrop-filter: blur(6px);
}

.login-topbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.login-topbar__brand .kan-logo--header,
.login-topbar__brand .kan-logo--login-top {
  height: clamp(40px, 5vw, 48px);
  width: auto;
  display: block;
  background: transparent;
}

.login-topbar__accent {
  color: var(--accent);
}

.login-topbar__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.login-topbar__link:hover {
  color: #fff;
}

/* Shell */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 32px;
}

.login-card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Brand panel (left) */
.login-brand {
  position: relative;
  padding: 40px 36px;
  background:
    linear-gradient(145deg, rgba(234, 88, 12, 0.92) 0%, rgba(154, 52, 18, 0.95) 55%, rgba(15, 23, 42, 0.98) 100%);
  color: #fff;
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.2), transparent 50%);
  pointer-events: none;
}

.login-brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.login-brand__mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  display: block;
  margin-bottom: 24px;
  padding: 0;
  box-shadow: none;
}

.login-brand__mark .kan-logo--login {
  width: min(120px, 28vw);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.login-brand__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.login-brand__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.login-brand__lead {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.login-brand__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.login-brand__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.login-brand__note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Form panel (right) */
.login-form-panel {
  padding: 40px 36px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel__head {
  margin-bottom: 28px;
  text-align: center;
}

.login-form-panel__head h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.login-form-panel__head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-form {
  width: 100%;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.login-alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.login-field {
  margin-bottom: 18px;
}

.login-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.login-input-wrap--pass .login-input {
  padding-right: 48px;
}

.login-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-soft) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.login-pass-toggle {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-pass-toggle:hover {
  color: var(--accent);
  background: rgba(234, 88, 12, 0.08);
}

.login-pass-toggle.is-visible .icon-eye {
  display: none;
}

.login-pass-toggle.is-visible .icon-eye-off {
  display: block !important;
}

.login-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, var(--accent) 50%, var(--accent-dark) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.4);
}

.login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.login-submit__arrow {
  transition: transform 0.15s ease;
}

.login-submit:hover:not(:disabled) .login-submit__arrow {
  transform: translateX(3px);
}

.login-footer-help {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.login-footer-help__muted {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-weight: 500;
}

.login-copyright {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Mobile */
@media (max-width: 860px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 28px 24px 24px;
  }

  .login-brand__lead,
  .login-brand__features,
  .login-brand__note {
    display: none;
  }

  .login-brand__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
  }

  .login-brand__mark {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }

  .login-brand__mark img {
    width: 40px;
  }

  .login-brand__eyebrow {
    width: 100%;
    margin-bottom: 0;
  }

  .login-brand__title {
    margin: 0;
    font-size: 1.35rem;
    flex: 1;
  }

  .login-form-panel {
    padding: 28px 24px 32px;
  }

  .login-topbar {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .login-topbar__link {
    font-size: 0.8rem;
  }

  .login-topbar__brand span {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-submit__arrow,
  .login-input,
  .login-topbar__link {
    transition: none;
  }
}

/* RentalFlee credit */
.rf-credit {
  margin: 8px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
}

.rf-credit strong {
  color: #64748b;
  font-weight: 800;
}

.rf-credit--dark {
  color: rgba(255, 255, 255, 0.45);
}

.rf-credit--dark strong {
  color: rgba(255, 255, 255, 0.7);
}
