/* ============================================
   STOCK-SOFT — Professional Login Page
   ============================================ */

:root {
  /* Brand Colors */
  --primary-green: #4a2d7a;
  --secondary-green: #6b42a8;
  --other-secondary-green: #7c52bf;
  --accent-green: #8b6cc1;
  --dark-forest: #2d1b4e;
  --sage-gray: #e8e3f0;
  --natural-white: #FAFAFA;
  --earth-brown: #5D4037;
  --golden-yellow: #FFC107;
  --wheat-gold: #FFD54F;
  --sky-blue: #2196F3;
  --water-blue: #03A9F4;
  --success-green: #38ad46;
  --error-red: #ff0000;
  --warning-orange: #ff9800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background: var(--dark-forest);
}

/* ── Preloader ── */
#preloader_login {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, rgba(74, 45, 122, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.5s ease !important;
}

.spinner_login {
  width: 70px !important;
  height: 70px !important;
  border: 7px solid rgba(74, 45, 122, 0.2) !important;
  border-top: 7px solid #6b42a8 !important;
  border-radius: 50% !important;
  animation: spin_login 1s linear infinite !important;
}

@keyframes spin_login {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Full-screen Background ── */
.login-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.05);
  transition: filter 0.6s ease;
}

.login-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 78, 0.85) 0%,
    rgba(74, 45, 122, 0.7) 40%,
    rgba(107, 66, 168, 0.6) 70%,
    rgba(45, 27, 78, 0.8) 100%
  );
}

/* ── Particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(-100vh) translateX(30px) scale(0.3);
    opacity: 0;
  }
}

/* ── Main Wrapper ── */
.login-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── Left Brand Panel ── */
.login-brand-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
}

.brand-content {
  max-width: 420px;
  color: #fff;
  animation: fadeInLeft 0.8s ease both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Brand Logo */
.brand-logo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.brand-logo-wrapper:hover {
  transform: translateY(-4px) rotate(2deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.brand-logo-default {
  font-size: 42px;
  color: var(--golden-yellow);
}

/* Brand Title */
.brand-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--golden-yellow) 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.brand-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* Separator */
.brand-separator {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--golden-yellow), var(--secondary-green));
  border-radius: 3px;
  margin-bottom: 36px;
}

/* Features */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 193, 7, 0.3);
  transform: translateX(6px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--golden-yellow), var(--wheat-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
  font-size: 1.2rem;
  color: var(--dark-forest);
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.feature-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

/* ── Right Form Panel ── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* ── Login Card ── */
.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 44px 40px 36px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.8s ease both;
  animation-delay: 0.2s;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Top accent bar */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--golden-yellow), var(--secondary-green));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Card Header ── */
.card-header-section {
  text-align: center;
  margin-bottom: 32px;
}

.mobile-logo {
  display: none;
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
}

.mobile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-logo-default {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--golden-yellow);
  font-size: 28px;
}

.mobile-app-name {
  display: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.welcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(74, 45, 122, 0.25);
}

.welcome-icon i {
  font-size: 1.6rem;
  color: #fff;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-forest);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.92rem;
  color: var(--earth-brown);
  opacity: 0.7;
  font-weight: 400;
}

/* ── Alert ── */
#alertContainer {
  margin-bottom: 20px;
  animation: alertSlide 0.3s ease;
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 500;
  font-size: 0.88rem;
  position: relative;
}

.alert-success {
  background: rgba(56, 173, 70, 0.1);
  color: var(--success-green);
  border-left: 3px solid var(--success-green);
}

.alert-danger {
  background: rgba(244, 67, 54, 0.08);
  color: var(--error-red);
  border-left: 3px solid var(--error-red);
}

.alert-warning {
  background: rgba(255, 152, 0, 0.08);
  color: var(--warning-orange);
  border-left: 3px solid var(--warning-orange);
}

/* ── Form Fields ── */
.form-field {
  margin-bottom: 24px;
  position: relative;
}

.field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--accent-green);
  z-index: 2;
  transition: color 0.3s ease;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 16px 50px 16px 48px;
  border: 2px solid var(--sage-gray);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--dark-forest);
  background: var(--natural-white);
  transition: all 0.3s ease;
  outline: none;
  font-weight: 400;
}

.form-control::placeholder {
  color: transparent;
}

/* Floating label */
.field-label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: rgba(93, 64, 55, 0.5);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 4px;
  font-weight: 400;
}

.form-control:focus ~ .field-label,
.form-control:not(:placeholder-shown) ~ .field-label {
  top: 0;
  left: 14px;
  font-size: 0.75rem;
  color: var(--primary-green);
  font-weight: 600;
  background: white;
  padding: 0 6px;
}

/* Field highlight line */
.field-highlight {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--golden-yellow));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
}

.form-control:focus ~ .field-highlight {
  width: calc(100% - 4px);
}

/* Focus state */
.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(74, 45, 122, 0.08);
  background: #fff;
}

.form-control:focus ~ .field-icon,
.form-control:focus + .field-icon {
  color: var(--primary-green);
}

/* Field wrapper focus */
.field-wrapper:focus-within .field-icon {
  color: var(--primary-green);
}

/* Validation states */
.form-control.error {
  border-color: var(--error-red);
  background: rgba(244, 67, 54, 0.03);
  animation: fieldShake 0.4s ease;
}

.form-control.success {
  border-color: var(--success-green);
  background: rgba(56, 173, 70, 0.03);
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.invalid-feedback {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--error-red);
  font-weight: 500;
  padding-left: 16px;
}

.invalid-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Password Toggle ── */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--earth-brown);
  font-size: 1.15rem;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--primary-green);
  background: rgba(74, 45, 122, 0.06);
}

/* ── Custom Checkbox ── */
.form-options {
  margin-bottom: 28px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--sage-gray);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
}

.checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.custom-checkbox input:checked ~ .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-text {
  font-size: 0.88rem;
  color: var(--earth-brown);
  font-weight: 400;
  transition: color 0.2s ease;
}

.custom-checkbox:hover .checkbox-text {
  color: var(--primary-green);
}

.custom-checkbox:hover .checkmark {
  border-color: var(--primary-green);
}

/* ── Submit Button ── */
.btn-login {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%) !important;
  background-color: var(--primary-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74, 45, 122, 0.35);
  background: linear-gradient(135deg, var(--dark-forest) 0%, var(--primary-green) 100%) !important;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(74, 45, 122, 0.25);
}

.btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

/* Loading state */
.btn-login.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin_login 0.7s linear infinite;
}

/* Success state */
.btn-login.success {
  background: linear-gradient(135deg, var(--success-green), #2e7d32);
}

/* ── Card Footer ── */
.card-footer-section {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 45, 122, 0.08);
}

.card-footer-section p {
  font-size: 0.78rem;
  color: var(--earth-brown);
  opacity: 0.6;
  font-weight: 400;
}

/* ── Error Shake ── */
.error-shake {
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* ── Typing Animation ── */
.typing-text {
  overflow: visible;
  border-right: 2px solid var(--golden-yellow);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  line-height: 1.2;
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {
  from, to { border-color: transparent; }
  50% { border-color: var(--golden-yellow); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large screens */
@media (min-width: 1400px) {
  .brand-title {
    font-size: 3.2rem;
  }
  .login-card {
    max-width: 460px;
    padding: 48px 44px 40px;
  }
}

/* Small laptops — compact to avoid scrolling */
@media (max-width: 1200px) {
  .login-brand-panel {
    padding: 30px 28px;
  }
  .brand-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }
  .brand-tagline {
    margin-bottom: 20px;
    font-size: 0.95rem;
  }
  .brand-separator {
    margin-bottom: 24px;
  }
  .brand-content {
    max-width: 340px;
  }
  .brand-logo-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 18px;
  }
  .brand-logo-img {
    width: 52px;
    height: 52px;
  }
  .brand-features {
    gap: 12px;
  }
  .feature-item {
    padding: 10px 14px;
    border-radius: 12px;
  }
  .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .feature-icon i {
    font-size: 1.05rem;
  }
  .feature-label {
    font-size: 0.88rem;
  }
  .feature-desc {
    font-size: 0.75rem;
  }
  .login-card {
    padding: 36px 32px 28px;
  }
  .card-header-section {
    margin-bottom: 24px;
  }
  .welcome-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .welcome-icon i {
    font-size: 1.3rem;
  }
  .card-title {
    font-size: 1.5rem;
  }
  .form-field {
    margin-bottom: 18px;
  }
  .form-control {
    padding: 14px 48px 14px 44px;
  }
  .form-options {
    margin-bottom: 20px;
  }
  .card-footer-section {
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* Tablet portrait — single column, hide brand panel */
@media (max-width: 1024px) {
  .login-wrapper {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    flex: none;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  .mobile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: auto;
    height: auto;
  }

  .mobile-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  }

  .mobile-logo-default {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 26px;
  }

  .mobile-app-name {
    display: block;
  }

  .welcome-icon {
    display: none;
  }

  .login-card {
    padding: 36px 32px 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .login-form-panel {
    padding: 20px 16px;
    max-width: 420px;
  }

  .login-card {
    padding: 32px 24px 24px;
    border-radius: 20px;
  }

  .card-header-section {
    margin-bottom: 24px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-subtitle {
    font-size: 0.88rem;
  }

  .form-field {
    margin-bottom: 18px;
  }

  .form-control {
    padding: 14px 46px 14px 42px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .field-icon {
    left: 14px;
    font-size: 1.05rem;
  }

  .field-label {
    font-size: 0.85rem;
    left: 42px;
  }

  .form-control:focus ~ .field-label,
  .form-control:not(:placeholder-shown) ~ .field-label {
    left: 12px;
    font-size: 0.72rem;
  }

  .form-options {
    margin-bottom: 20px;
  }

  .btn-login {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .card-footer-section {
    margin-top: 20px;
    padding-top: 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .login-wrapper {
    align-items: flex-start;
    padding-top: 8vh;
  }

  .login-form-panel {
    padding: 12px 14px;
    max-width: 100%;
  }

  .login-card {
    padding: 28px 20px 22px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  }

  .mobile-logo img {
    width: 52px;
    height: 52px;
  }

  .mobile-logo-default {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 24px;
  }

  .card-header-section {
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .card-subtitle {
    font-size: 0.82rem;
  }

  .form-field {
    margin-bottom: 16px;
  }

  .form-control {
    padding: 13px 42px 13px 38px;
    font-size: 0.88rem;
    border-radius: 12px;
    border-width: 1.5px;
  }

  .field-icon {
    left: 12px;
    font-size: 1rem;
  }

  .field-label {
    left: 38px;
    font-size: 0.82rem;
  }

  .form-control:focus ~ .field-label,
  .form-control:not(:placeholder-shown) ~ .field-label {
    left: 10px;
    font-size: 0.7rem;
  }

  .toggle-password {
    right: 10px;
    font-size: 1rem;
  }

  .form-options {
    margin-bottom: 18px;
  }

  .checkbox-text {
    font-size: 0.82rem;
  }

  .checkmark {
    width: 18px;
    height: 18px;
  }

  .btn-login {
    padding: 13px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .card-footer-section {
    margin-top: 16px;
    padding-top: 12px;
  }

  .card-footer-section p {
    font-size: 0.72rem;
  }

  .alert {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .form-control {
    border-width: 3px;
  }
  .btn-login {
    border: 2px solid var(--primary-green);
  }
}

/* Focus for accessibility */
.form-control:focus,
.btn-login:focus,
.toggle-password:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.btn-login:focus {
  outline-offset: 3px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* ── Selection ── */
::selection {
  background: var(--accent-green);
  color: white;
}

::-moz-selection {
  background: var(--accent-green);
  color: white;
}

/* ── Print ── */
@media print {
  .login-wrapper { display: none; }
}

/* End of CSS */
