 *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: #0C3668;
      --primary-hover: #092B53;
      --primary-light: rgba(12, 54, 104, 0.07);
      --primary-ring: rgba(12, 54, 104, 0.2);
      --primary-shadow: rgba(12, 54, 104, 0.25);
      --secondary: #DE0011;
      --secondary-hover: #B8000E;
      --bg-body: #EEF2F7;
      --bg-card: #FFFFFF;
      --bg-input: #F8FAFC;
      --bg-input-focus: #FFFFFF;
      --border: #D8DEE9;
      --border-focus: #0C3668;
      --text-primary: #0F172A;
      --text-secondary: #475569;
      --text-muted: #7B8BA3;
      --text-placeholder: #B0BCC9;
      --danger: #DE0011;
      --danger-bg: #FFF1F1;
      --danger-border: #FECACA;
      --danger-text: #99000D;
      --success: #0C8C5C;
      --success-bg: #ECFDF5;
      --success-border: #A7F3D0;
      --success-text: #065F46;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
      --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
      --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
      --shadow-xl: 0 20px 50px -12px rgba(12, 54, 104, 0.13);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 20px;
      --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-body);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: 
        radial-gradient(ellipse 600px 400px at 15% 25%, rgba(12,54,104,0.06), transparent),
        radial-gradient(ellipse 500px 350px at 85% 75%, rgba(222,0,17,0.04), transparent),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(12,54,104,0.02), transparent);
      pointer-events: none;
      z-index: 0;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image: 
        linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0;
    }

    .login-container {
      width: 100%;
      max-width: 440px;
      position: relative;
      z-index: 1;
    }

    /* ── Brand Section ── */
    .brand-section {
      text-align: center;
      margin-bottom: 32px;
    }

    .brand-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 28px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
      margin-bottom: 22px;
      transition: transform var(--transition), box-shadow var(--transition);
      height: 72px;
    }

    .brand-logo:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
    }

    .brand-logo img {
      height: 46px;
      width: auto;
      max-width: 200px;
      object-fit: contain;
      display: block;
    }

    .brand-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.02em;
      margin-bottom: 4px;
      line-height: 1.3;
    }

    .brand-subtitle {
      font-size: 13.5px;
      color: var(--text-muted);
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    /* ── Card ── */
    .login-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-xl);
      overflow: hidden;
    }

    /* Top accent bar */
    .login-card::before {
      content: '';
      display: block;
      height: 4px;
      background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 70%, var(--secondary) 70%, var(--secondary) 100%);
    }

    .card-header {
      padding: 28px 32px 0;
    }

    .card-header h2 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
      letter-spacing: -0.015em;
    }

    .card-header p {
      font-size: 13.5px;
      color: var(--text-muted);
      font-weight: 400;
      line-height: 1.5;
    }

    .card-body {
      padding: 24px 32px 32px;
    }

    /* ── Alert Messages ── */
    .alert-wrapper {
      margin-bottom: 20px;
    }

    .alert {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 36px 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      line-height: 1.5;
      animation: alertSlideIn 0.3s ease-out;
      position: relative;
    }

    .alert-danger {
      background: var(--danger-bg);
      border: 1px solid var(--danger-border);
      color: var(--danger-text);
    }

    .alert-success {
      background: var(--success-bg);
      border: 1px solid var(--success-border);
      color: var(--success-text);
    }

    .alert .alert-icon {
      flex-shrink: 0;
      margin-top: 1px;
      font-size: 14px;
    }

    .alert .alert-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: inherit;
      opacity: 0.5;
      cursor: pointer;
      padding: 2px;
      line-height: 1;
      font-size: 16px;
      transition: opacity var(--transition);
    }

    .alert .alert-close:hover {
      opacity: 1;
    }

    @keyframes alertSlideIn {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Form ── */
    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 6px;
      letter-spacing: 0.01em;
    }

    .input-wrapper {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-placeholder);
      font-size: 15px;
      pointer-events: none;
      transition: color var(--transition);
    }

    .form-control {
      width: 100%;
      padding: 11px 14px 11px 42px;
      background: var(--bg-input);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 14px;
      font-weight: 400;
      color: var(--text-primary);
      outline: none;
      transition: all var(--transition);
    }

    .form-control::placeholder {
      color: var(--text-placeholder);
      font-weight: 400;
    }

    .form-control:hover {
      border-color: #C0C9D6;
    }

    .form-control:focus {
      background: var(--bg-input-focus);
      border-color: var(--border-focus);
      box-shadow: 0 0 0 3px var(--primary-ring);
    }

    .input-wrapper:focus-within .input-icon {
      color: var(--primary);
    }

    .form-control.error {
      border-color: var(--danger);
      box-shadow: 0 0 0 3px rgba(222, 0, 17, 0.1);
    }

    .error-message {
      display: none;
      font-size: 12px;
      color: var(--danger);
      margin-top: 5px;
      font-weight: 500;
      align-items: center;
      gap: 4px;
    }

    .error-message.show {
      display: flex;
    }

    .error-message i {
      font-size: 11px;
    }

    /* ── Password Toggle ── */
    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
      font-size: 14px;
      transition: color var(--transition);
      line-height: 1;
    }

    .password-toggle:hover {
      color: var(--text-secondary);
    }

    /* ── Forgot Password ── */
    .form-options {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-bottom: 24px;
    }

    .forgot-link {
      font-size: 13px;
      font-weight: 500;
      color: var(--primary);
      text-decoration: none;
      transition: color var(--transition);
    }

    .forgot-link:hover {
      color: var(--primary-hover);
      text-decoration: underline;
    }

    /* ── Submit Button ── */
    .btn-submit {
      width: 100%;
      padding: 12px 24px;
      background: var(--primary);
      color: #FFFFFF;
      border: none;
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all var(--transition);
      position: relative;
      overflow: hidden;
      letter-spacing: 0.01em;
    }

    .btn-submit::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
      pointer-events: none;
    }

    .btn-submit:hover:not(:disabled) {
      background: var(--primary-hover);
      box-shadow: 0 4px 14px var(--primary-shadow);
      transform: translateY(-1px);
    }

    .btn-submit:active:not(:disabled) {
      transform: translateY(0);
      box-shadow: 0 2px 6px var(--primary-shadow);
    }

    .btn-submit:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }

    .btn-submit .btn-text {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .btn-submit .btn-loader {
      display: none;
      align-items: center;
      gap: 10px;
    }

    .btn-submit.loading .btn-text {
      display: none;
    }

    .btn-submit.loading .btn-loader {
      display: inline-flex;
    }

    /* ── Spinner ── */
    .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #FFFFFF;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* ── Footer ── */
    .login-footer {
      text-align: center;
      margin-top: 24px;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .login-footer a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
      transition: color var(--transition);
    }

    .login-footer a:hover {
      color: var(--secondary);
      text-decoration: underline;
    }

    /* ── Security Badge ── */
    .security-badge {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-muted);
    }

    .security-badge i {
      font-size: 13px;
      color: var(--success);
    }

    /* ── Responsive ── */
    @media (max-width: 480px) {
      body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
      }

      .card-header,
      .card-body {
        padding-left: 24px;
        padding-right: 24px;
      }

      .brand-title {
        font-size: 18px;
      }

      .brand-logo {
        padding: 10px 20px;
        height: 62px;
      }

      .brand-logo img {
        height: 40px;
        max-width: 170px;
      }
    }

    /* ── Alert fade-out ── */
    .alert-fade-out {
      animation: alertFadeOut 0.4s ease-in forwards;
    }

    @keyframes alertFadeOut {
      to {
        opacity: 0;
        transform: translateY(-8px);
        height: 0;
        padding: 0;
        margin: 0;
        border: 0;
        overflow: hidden;
      }
    }

    /* ── Hide default jQuery Validate label ── */
    label.error {
      display: none !important;
    }

      .info-box i {
      color: var(--primary);
      font-size: 16px;
      margin-top: 1px;
      flex-shrink: 0;
    }

    .info-box p {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.55;
    }
     .info-box {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px 16px;
      background: var(--primary-light);
      border: 1px solid rgba(12, 54, 104, 0.1);
      border-radius: var(--radius-sm);
      margin-bottom: 24px;
    }

     /* ── Back to Login ── */
    .back-to-login {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      font-size: 13px;
      color: var(--text-muted);
    }

    .back-to-login a {
      font-weight: 500;
      color: var(--primary);
      text-decoration: none;
      transition: color var(--transition);
    }

    .back-to-login a:hover {
      color: var(--primary-hover);
      text-decoration: underline;
    }

    .back-to-login a i {
      font-size: 12px;
    }