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

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 15% 50%, rgba(26, 115, 232, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
}

.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.login-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--grey-700);
  margin-bottom: 6px;
}

.login-header p {
  font-size: 15px;
  color: var(--grey-500);
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-glass);
}

.login-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--grey-700);
  margin-bottom: 24px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--grey-400);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

.login-error {
  background: var(--error-light);
  color: var(--error);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--error);
}

.login-error.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--grey-400);
}

.login-footer a {
  color: var(--blue);
  font-weight: 600;
}

.login-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.login-bg-shapes .shape-1 {
  width: 600px;
  height: 600px;
  background: var(--blue);
  top: -200px;
  right: -200px;
}

.login-bg-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -150px;
  left: -150px;
}

.login-bg-shapes .shape-3 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Remember me row */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-500);
  cursor: pointer;
}

.login-options label input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-options a {
  color: var(--blue);
  font-weight: 600;
}

/* Password visibility toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper .input-field {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
}

.password-toggle:hover {
  color: var(--grey-600);
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
  }

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