 
    :root {
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-light: rgba(37, 99, 235, 0.08);
      --primary-subtle: rgba(37, 99, 235, 0.04);
      --bg: #f8fafc;
      --bg-surface: #ffffff;
      --bg-elevated: #f1f5f9;
      --bg-input: #ffffff;
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #94a3b8;
      --text-placeholder: #cbd5e1;
      --border: #e2e8f0;
      --border-focus: #bfdbfe;
      --success: #059669;
      --success-bg: #ecfdf5;
      --error: #dc2626;
      --error-bg: #fef2f2;
      --warning: #d97706;
      --warning-bg: #fffbeb;
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      --radius: 12px;
      --radius-lg: 16px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-primary);
      -webkit-font-smoothing: antialiased;
    }

    /* Subtle background pattern */
    .bg-pattern {
      position: fixed;
      inset: 0;
      z-index: 0;
      opacity: 0.4;
      background-image: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
      pointer-events: none;
    }

    .login-wrapper {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1200px;
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
    }

    .login-container {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      width: 100%;
      max-width: 1080px;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      animation: fadeIn 0.5s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Left Side - Brand Panel */
    .brand-panel {
      background: linear-gradient(165deg, #f0f7ff 0%, #e0eafc 50%, #f8fafc 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 48px;
      position: relative;
      overflow: hidden;
    }

    .brand-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      opacity: 0.6;
    }

    .brand-content {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 320px;
    }

    .brand-logo-wrapper {
      width: 140px;
      height: 140px;
      background: var(--bg-surface);
      border-radius: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 32px;
      box-shadow: 
        0 4px 6px -1px rgba(37, 99, 235, 0.1),
        0 2px 4px -1px rgba(37, 99, 235, 0.06),
        inset 0 0 0 1px rgba(37, 99, 235, 0.08);
      padding: 24px;
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .brand-logo {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .brand-title {
      font-size: 26px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }

    .brand-subtitle {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 40px;
    }

    .feature-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      text-align: left;
    }

    .feature-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.6);
      border-radius: 10px;
      border: 1px solid rgba(37, 99, 235, 0.08);
      backdrop-filter: blur(8px);
    }

    .feature-icon {
      width: 36px;
      height: 36px;
      background: var(--primary-light);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      flex-shrink: 0;
    }

    .feature-icon svg {
      width: 18px;
      height: 18px;
    }

    .feature-text {
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    /* Right Side - Form */
    .form-section {
      padding: 56px 64px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .form-header {
      margin-bottom: 36px;
    }

    .header-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: var(--primary-subtle);
      border: 1px solid rgba(37, 99, 235, 0.1);
      border-radius: 100px;
      margin-bottom: 20px;
    }

    .header-badge img {
      width: 20px;
      height: 20px;
      object-fit: contain;
    }

    .header-badge span {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
    }

    .form-header h1 {
      font-size: 30px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }

    .form-header p {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* Form Elements */
    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }

    .input-wrapper {
      position: relative;
    }

    .form-control {
      width: 100%;
      padding: 13px 16px 13px 44px;
      background: var(--bg-input);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      color: var(--text-primary);
      font-size: 15px;
      font-family: inherit;
      font-weight: 400;
      transition: all 0.2s ease;
      outline: none;
    }

    .form-control::placeholder {
      color: var(--text-placeholder);
      font-weight: 400;
    }

    .form-control:hover {
      border-color: #cbd5e1;
    }

    .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px var(--primary-light);
    }

    .input-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      transition: color 0.2s ease;
      pointer-events: none;
    }

    .form-control:focus ~ .input-icon {
      color: var(--primary);
    }

    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .password-toggle:hover {
      background: var(--bg-elevated);
      color: var(--text-secondary);
    }

    /* Options */
    .form-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .checkbox-wrapper {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      user-select: none;
    }

    .checkbox-wrapper input[type="checkbox"] {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      border: 1.5px solid var(--border);
      background: var(--bg-input);
      appearance: none;
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .checkbox-wrapper input[type="checkbox"]:hover {
      border-color: #cbd5e1;
    }

    .checkbox-wrapper input[type="checkbox"]:checked {
      background: var(--primary);
      border-color: var(--primary);
    }

    .checkbox-wrapper input[type="checkbox"]:checked::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 2px;
      width: 5px;
      height: 9px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    .checkbox-wrapper span {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .forgot-link {
      font-size: 14px;
      font-weight: 500;
      color: var(--primary);
      text-decoration: none;
      transition: opacity 0.2s ease;
    }

    .forgot-link:hover {
      opacity: 0.8;
      text-decoration: underline;
    }

    /* Submit Button */
    .btn-login {
      width: 100%;
      padding: 14px 24px;
      background: var(--primary);
      border: none;
      border-radius: var(--radius);
      color: white;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
      box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    }

    .btn-login:hover {
      background: var(--primary-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    .btn-login:active {
      transform: translateY(0);
      box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    }

    /* Alerts */
    .alert {
      margin-top: 20px;
      padding: 14px 16px;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      animation: slideDown 0.3s ease;
      border: 1px solid;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .alert svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .alert-success {
      background: var(--success-bg);
      border-color: #a7f3d0;
      color: var(--success);
    }

    .alert-danger {
      background: var(--error-bg);
      border-color: #fecaca;
      color: var(--error);
    }

    .alert-warning {
      background: var(--warning-bg);
      border-color: #fde68a;
      color: var(--warning);
    }

    /* Footer */
    .login-footer {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      text-align: center;
    }

    .footer-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .footer-link:hover {
      color: var(--text-secondary);
    }

    .footer-link strong {
      color: var(--primary);
      font-weight: 600;
    }

    .footer-link svg {
      width: 14px;
      height: 14px;
    }

    .security-note {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 16px;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 500;
    }

    .security-note svg {
      width: 14px;
      height: 14px;
    }

    /* Divider */
    .divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 24px 0;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* Loading State */
    .btn-login.loading {
      pointer-events: none;
      opacity: 0.9;
    }

    .btn-login.loading::before {
      content: '';
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin-right: 8px;
      vertical-align: middle;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 900px) {
      .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
      }

      .brand-panel {
        display: none;
      }

      .form-section {
        padding: 40px 32px;
      }
    }

    @media (max-width: 480px) {
      .login-wrapper {
        padding: 16px;
      }

      .form-section {
        padding: 32px 24px;
      }

      .form-header h1 {
        font-size: 24px;
      }
    }
