/* ═══════════════════════════════════════════════════════════════════════════
   NETGEN CRM - AUTHENTICATION PAGE STYLES
   Modern, professional login and password reset screens
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --netgen-blue: #0d6efd;
  --netgen-blue-dark: #0b5ed7;
  --text-gray: #6c757d;
  --light-gray: #f6f7fb;
  --white: #ffffff;
  --border-gray: #ececec;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.15);
  --shadow-hover: 0 8px 24px rgba(13, 110, 253, 0.2);
}

/* ═════════════════════════════════════════════════════════════════════════
   AUTH BODY & MAIN LAYOUT
   ═════════════════════════════════════════════════════════════════════════ */

.auth-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--light-gray);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.auth-header {
  background: var(--white);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.auth-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.auth-header-logo {
  height: 40px;
  width: auto;
}

.auth-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.3px;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ═════════════════════════════════════════════════════════════════════════
   AUTH CARD
   ═════════════════════════════════════════════════════════════════════════ */

.auth-card {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 28px 32px 24px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   AUTH CARD HEADER (Title + Subtitle)
   ═════════════════════════════════════════════════════════════════════════ */

.auth-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.auth-card-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   ALERTS & MESSAGES
   ═════════════════════════════════════════════════════════════════════════ */

.auth-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 4px solid;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.auth-alert--error {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #7f1d1d;
}

.auth-alert--success {
  background: #f0fdf4;
  border-left-color: #16a34a;
  color: #166534;
}

.auth-alert--info {
  background: #f0f9ff;
  border-left-color: #0284c7;
  color: #0c2d6b;
}

.auth-alert--warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #7c2d12;
}

.auth-alert--danger {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #7f1d1d;
}

.auth-alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
  min-width: 20px;
}

.auth-alert-close:hover {
  opacity: 1;
}

/* ═════════════════════════════════════════════════════════════════════════
   FORM STYLING
   ═════════════════════════════════════════════════════════════════════════ */

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 6px;
  display: block;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.2s ease;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--netgen-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  outline: none;
  background: #ffffff;
}

.form-control::placeholder {
  color: #a0aec0;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #f7fafc;
  color: #cbd5e0;
}

/* ═════════════════════════════════════════════════════════════════════════
   FORM FOOTER (Remember me + Forgot password)
   ═════════════════════════════════════════════════════════════════════════ */

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═════════════════════════════════════════════════════════════════════════
   CHECKBOX & REMEMBER ME
   ═════════════════════════════════════════════════════════════════════════ */

.form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.form-check-input:checked {
  background-color: var(--netgen-blue);
  border-color: var(--netgen-blue);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-check-label {
  font-size: 13px;
  color: #2d3748;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

/* ═════════════════════════════════════════════════════════════════════════
   FORGOT PASSWORD LINK
   ═════════════════════════════════════════════════════════════════════════ */

.auth-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--netgen-blue);
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-link:hover {
  color: var(--netgen-blue-dark);
  text-decoration: underline;
}

.auth-link:focus {
  outline: 2px solid var(--netgen-blue);
  outline-offset: 2px;
}

/* ═════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════════════════════════ */

.btn {
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding: 10px 16px;
}

.btn-primary {
  background: var(--netgen-blue);
  color: var(--white);
  border-radius: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--netgen-blue-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: 2px solid var(--netgen-blue);
  outline-offset: 2px;
  background: var(--netgen-blue-dark);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
}

.btn-primary i {
  font-size: 15px;
}

/* ═════════════════════════════════════════════════════════════════════════
   AUTH FOOTER
   ═════════════════════════════════════════════════════════════════════════ */

.auth-footer {
  background: var(--white);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.auth-footer-text {
  font-size: 12px;
  color: #a0aec0;
  margin: 0;
}

.auth-footer a {
  color: var(--netgen-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: var(--netgen-blue-dark);
  text-decoration: underline;
}

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .auth-header {
    padding: 12px 16px;
  }

  .auth-header-content {
    gap: 10px;
  }

  .auth-header-logo {
    height: 36px;
  }

  .auth-header-title {
    font-size: 16px;
  }

  .auth-main {
    padding: 20px 16px;
  }

  .auth-card {
    max-width: 100%;
    padding: 24px 20px 20px;
  }

  .auth-card-title {
    font-size: 18px;
  }

  .auth-card-subtitle {
    font-size: 13px;
  }

  .form-control {
    padding: 9px 11px;
    font-size: 13px;
  }

  .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }

  .auth-footer {
    padding: 16px;
  }

  .auth-footer-text {
    font-size: 11px;
  }

  .form-footer {
    margin-bottom: 16px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 20px 16px 16px;
  }

  .auth-card-title {
    font-size: 16px;
  }

  .form-label {
    font-size: 12px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .auth-body {
    background: #0f172a;
  }

  .auth-header,
  .auth-footer {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .auth-card {
    background: #1e293b;
  }

  .auth-card-title {
    color: #f1f5f9;
  }

  .auth-card-subtitle {
    color: #cbd5e0;
  }

  .auth-header-title {
    color: #f1f5f9;
  }

  .form-label {
    color: #e2e8f0;
  }

  .form-control {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
  }

  .form-control:focus {
    background: #0f172a;
    border-color: var(--netgen-blue);
  }

  .form-control::placeholder {
    color: #64748b;
  }

  .form-check-label {
    color: #e2e8f0;
  }

  .auth-footer-text {
    color: #64748b;
  }
}


