/* =========================================================
   RESTAURANT SaaS
   LOGIN PAGE
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

.login-page {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px 25px;

  overflow: hidden;

  background:
    radial-gradient(circle at 10% 15%,
      rgba(230, 126, 34, 0.18),
      transparent 30%),
    radial-gradient(circle at 90% 85%,
      rgba(230, 126, 34, 0.1),
      transparent 32%),
    linear-gradient(135deg, #fffaf5 0%, #f8eee3 48%, #fffdfb 100%);

  color: var(--color-text-primary);
}

/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.login-page::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  top: -180px;
  right: -140px;

  border-radius: 50%;

  background: rgba(230, 126, 34, 0.08);

  pointer-events: none;
}

.login-page::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  bottom: -150px;
  left: -100px;

  border-radius: 50%;

  background: rgba(230, 126, 34, 0.07);

  pointer-events: none;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 450px;

  padding: 42px 40px 30px;

  background: rgb(201, 194, 184);

  border: 1px solid rgba(230, 126, 34, 0.16);

  border-radius: 22px;

  box-shadow:
    0 30px 80px rgba(70, 45, 25, 0.12),
    0 8px 24px rgba(70, 45, 25, 0.06);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* =========================================================
   CARD TOP ACCENT
   ========================================================= */

.login-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 40px;
  right: 40px;

  height: 3px;

  border-radius: 0 0 10px 10px;

  background: linear-gradient(90deg,
      var(--color-primary),
      #f39a4a,
      var(--color-primary));
}

/* =========================================================
   BRAND
   ========================================================= */

.login-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 34px;
}

/* =========================================================
   BRAND ICON
   ========================================================= */

.login-brand-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: rgb(148, 143, 137);

  color: rgb(63, 63, 72);

  font-size: 19px;
  font-weight: 800;

  box-shadow: 0 9px 22px rgba(20, 87, 126, 0.25);
}

/* =========================================================
   BRAND TEXT
   ========================================================= */

.login-brand-text {
  display: flex;
  flex-direction: column;

  line-height: 1.1;
}

.login-brand-text span {
  color: rgb(59, 59, 68);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.login-brand-text strong {
  margin-top: 4px;

  color: rgb(42, 42, 47);

  font-size: 19px;
  font-weight: 800;
}

/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {
  margin-bottom: 28px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 9px;

  color: var(--color-primary);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-eyebrow::before {
  content: "";

  width: 18px;
  height: 2px;

  border-radius: 99px;

  background: var(--color-primary);
}

.login-header h1 {
  margin: 0;

  color: #241b15;

  font-size: 30px;
  font-weight: 800;

  letter-spacing: -0.7px;

  line-height: 1.2;
}

.login-header p {
  margin: 10px 0 0;

  color: #493a2f;

  font-size: 15px;

  line-height: 1.65;
}

/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.form-group label {
  color: #3b2c22;

  font-size: 13px;
  font-weight: 750;
}

/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.input-wrapper {
  position: relative;

  width: 100%;
}

/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper input {
  width: 100%;
  height: 50px;

  box-sizing: border-box;

  padding: 0 45px;

  border: 1px solid #e6d8cc;

  border-radius: 13px;

  outline: none;

  background: #fffdfb;

  color: #241b15;

  font-family: inherit;

  font-size: 13px;

  box-shadow: inset 0 1px 2px rgba(60, 40, 20, 0.02);

  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

.input-wrapper input::placeholder {
  color: #ad9d90;
}

.input-wrapper input:hover {
  border-color: rgba(230, 126, 34, 0.35);

  background: white;
}

.input-wrapper input:focus {
  border-color: var(--color-primary);

  background: white;

  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.11),
    0 5px 15px rgba(230, 126, 34, 0.06);
}

/* =========================================================
   INPUT ICON
   ========================================================= */

.input-icon {
  position: absolute;

  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  width: 19px;
  height: 19px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #9b897b;

  font-size: 15px;
  font-weight: 700;

  pointer-events: none;

  transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
  color: var(--color-primary);
}

/* =========================================================
   PASSWORD VISIBILITY BUTTON
   ========================================================= */

.password-toggle {
  position: absolute;

  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 9px;

  background: transparent;

  color: #9b897b;

  font-size: 15px;

  cursor: pointer;

  transition: background-color 0.2s ease,
    color 0.2s ease;
}

.password-toggle:hover {
  background: rgba(230, 126, 34, 0.09);

  color: var(--color-primary);
}

.password-toggle:active {
  background: rgba(230, 126, 34, 0.15);
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  margin-top: 5px;

  padding: 0 18px;

  border: 1px solid var(--color-primary);

  border-radius: 13px;

  background: rgb(155, 150, 173);

  color: rgb(54, 54, 89);

  font-family: inherit;

  font-size: 16px;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 9px 22px rgba(20, 87, 126, 0.25);

  transition: background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.login-button:hover {
  background: rgb(129, 125, 143);

  border-color: var(--color-primary);

  transform: translateY(-2px);

  box-shadow: 0 9px 22px rgba(20, 106, 156, 0.25);
}

.login-button:active {
  transform: translateY(0);

  box-shadow: 0 5px 12px rgba(230, 126, 34, 0.18);
}

/* =========================================================
   BUTTON ARROW
   ========================================================= */

.login-button-arrow {
  font-size: 17px;

  line-height: 1;

  transition: transform 0.2s ease;
}

.login-button:hover .login-button-arrow {
  transform: translateX(4px);
}

/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
  margin-top: 27px;

  padding-top: 20px;

  border-top: 1px solid #eee1d7;

  text-align: center;
}

.login-footer span {
  color: #aa998c;

  font-size: 10px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 480px) {
  .login-page {
    padding: 25px 15px;
  }

  .login-card {
    padding: 34px 22px 27px;

    border-radius: 18px;
  }

  .login-card::before {
    left: 25px;
    right: 25px;
  }

  .login-brand {
    margin-bottom: 28px;
  }

  .login-brand-icon {
    width: 43px;
    height: 43px;
  }

  .login-header h1 {
    font-size: 25px;
  }

  .login-header p {
    font-size: 12px;
  }

  .login-form {
    gap: 17px;
  }

  .input-wrapper input {
    height: 48px;
  }

  .login-button {
    min-height: 48px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .login-button,
  .login-button-arrow,
  .input-wrapper input,
  .input-icon,
  .password-toggle {
    transition: none;
  }
}