/* LOGIN PAGE */

/* ===== MAIN SPLIT LAYOUT ===== */
.login-main {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 73px);
}


/* ===== FORM  ===== */
.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--white);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

/* ===== FORM SECTIONS ===== */

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ===== FORM ELEMENTS ===== */
.form-group-custom {
  margin-bottom: 18px;
}

.form-group-custom label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}

.req {
  color: var(--pink);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  color: var(--pink-mid);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s;
}

.form-input {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fdf7f9;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 12px 70px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}


.form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(224, 122, 154, 0.12);
  background: var(--white);
}

.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--pink);
}

.form-input.is-invalid {
  border-color: #e05a5a;
  box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.1);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--pink-mid);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}

.toggle-pw:hover {
  color: var(--pink);
}

.invalid-msg {
  font-size: 0.74rem;
  color: #e05a5a;
  display: none;
  margin-top: 5px;
}

.invalid-msg.show {
  display: block;
}

/* ===== REMEMBER + FORGOT ===== */
.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  user-select: none;
}

.remember-wrap input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #fdf7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.remember-wrap input[type="checkbox"]:checked + .checkmark {
  background: var(--pink);
  border-color: var(--pink);
}

.remember-wrap input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--pink-dark);
  text-decoration: underline;
}

/* ===== AUTH BUTTON ===== */
.btn-auth {
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--pink);
  border: none;
  border-radius: 50px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-auth:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 122, 154, 0.35);
}

.btn-auth:active {
  transform: translateY(0);
}

/* ===== SWITCH LINK ===== */
.switch-text {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text);
  margin: 0;
}

.switch-link {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 0.83rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.switch-link:hover {
  color: var(--pink-dark);
}

/* ===== ALERTS ===== */
.alert-error-custom {
  background: #fdf0f0;
  border: 1.5px solid #e8a0a0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #9b3535;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  animation: fadeInDown 0.3s ease;
}

.alert-success-custom {
  background: #edf7f0;
  border: 1.5px solid #7cc49a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #2d6b47;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  animation: fadeInDown 0.3s ease;
}


/* ===== SPINNER ===== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-panel {
    display: none;
  }

  .login-form-side {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-main {
    min-height: calc(100vh - 105px);
  }
}

@media (max-width: 480px) {
  .form-title {
    font-size: 1.4rem;
  }

  .login-card {
    max-width: 100%;
  }
}
