 /* ==========================
           GLOBAL & RESET
           ========================== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --primary: #3498db;
     --primary-dark: #2980bd;
     --secondary: #0ea5e9;
     --accent: #f97316;
     --bg: #f3f4f6;
     --text: #111827;
     --muted: #6b7280;
     --white: #ffffff;
     --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
     --radius-lg: 1rem;
     --radius-md: 0.75rem;
     --radius-sm: 0.5rem;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: var(--bg);
     color: var(--text);
     line-height: 1.6;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
 }

 /* ==========================
           UTILITIES
           ========================== */
 .container {
     width: 100%;
     max-width: 1120px;
     margin: 0 auto;
     padding: 0 1.5rem;
 }

 .section {
     padding: 4rem 0;
 }

 .section-alt {
     background: #f9fafb;
 }

 .section-header {
     text-align: center;
     margin-bottom: 2.5rem;
 }

 .section-header h2 {
     font-size: 1.9rem;
     margin-bottom: 0.5rem;
 }

 .section-header p {
     color: var(--muted);
     font-size: 0.95rem;
 }

 /* Buttons */
 .btn-primary,
 .btn-outline {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     padding: 0.7rem 1.4rem;
     border-radius: 999px;
     font-size: 0.95rem;
     font-weight: 600;
     text-decoration: none;
     cursor: pointer;
     transition: all 0.2s ease;
     border: none;
 }

 .btn-primary {
     background: linear-gradient(135deg, var(--primary), var(--secondary));
     color: var(--white);
     box-shadow: var(--shadow-soft);
 }

 .btn-primary:hover {
     filter: brightness(1.05);
     transform: translateY(-1px);
 }

 .btn-primary:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 .full-width {
     width: 100%;
 }

 /* ==========================
           LAYOUT LOGIN
           ========================== */
 .login-wrapper {
     display: grid;
     grid-template-columns: 1.2fr 1fr;
     min-height: 100vh;
 }

 /* LEFT SIDE - LOGO & INFO */
 .login-left {
     background: linear-gradient(135deg, #00497a, var(--secondary));
     color: white;
     padding: 2.2rem 3rem;
     display: flex;
     flex-direction: column;
     justify-content: center;
     position: relative;
     overflow: hidden;
 }

 .login-left::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><path d="M0,0 L1000,0 L1000,1000 L0,1000 Z" fill="white"/></svg>');
 }

 .brand-section {
     position: relative;
     z-index: 1;
 }

 .brand-logo {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .brand-logo img {
     height: 60px;
     width: 60px;
     object-fit: contain;
     background: white;
     border-radius: 12px;
     padding: 8px;
 }

 .brand-text h1 {
     font-size: 1.8rem;
     margin-bottom: 0.3rem;
     font-weight: 700;
 }

 .brand-text h2 {
     font-size: 1rem;
     opacity: 0.9;
     font-weight: 500;
 }

 .info-card {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     border-radius: var(--radius-lg);
     padding: 1.5rem;
     position: relative;
     z-index: 1;
     margin-top: 2rem;
 }

 .info-card h3 {
     font-size: 1.1rem;
     margin-bottom: 0.8rem;
 }

 .info-card p {
     font-size: 0.9rem;
     opacity: 0.9;
     margin-bottom: 1rem;
     line-height: 1.5;
 }

 .info-card ul {
     list-style: none;
     margin-bottom: 1rem;
 }

 .info-card li {
     font-size: 0.9rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     margin-bottom: 0.5rem;
     opacity: 0.9;
 }

 .info-card li i {
     color: #4ade80;
 }

 .version-badge {
     display: inline-block;
     background: rgba(255, 255, 255, 0.2);
     padding: 0.3rem 0.8rem;
     border-radius: 999px;
     font-size: 0.8rem;
     margin-top: 1rem;
 }

 /* RIGHT SIDE - FORM */
 .login-right {
     background: var(--white);
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1.9rem 0px;
 }

 .login-container {
     width: 100%;
     max-width: 400px;
     border: 1px solid #e2e8f0;
     border-radius: var(--radius-lg);
     padding: 1.5rem;
     background: white;
     box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2),
         0 10px 30px rgba(15, 23, 42, 0.12);
     transition: all 0.3s ease;
 }

 .login-container:hover {
     box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3),
         0 15px 35px rgba(37, 99, 235, 0.15);
 }

 .login-header {
     text-align: center;
     margin-bottom: 2rem;
 }

 .login-header h1 {
     font-size: 1.5rem;
     margin-bottom: 0.5rem;
     color: var(--text);
 }

 .login-header p {
     color: var(--muted);
     font-size: 0.9rem;
 }

 /* ==========================
           FORM STYLES
           ========================== */
 .form-group {
     margin-bottom: 1.2rem;
 }

 .form-group label {
     display: block;
     font-size: 0.85rem;
     font-weight: 600;
     color: #374151;
     margin-bottom: 0.4rem;
 }

 .input-group {
     position: relative;
     display: flex;
     align-items: center;
     border: 1px solid #d1d5db;
     border-radius: var(--radius-sm);
     overflow: hidden;
     transition: border-color 0.2s ease;
 }

 .input-group:focus-within {
     border-color: var(--primary);
     box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
 }

 .input-group i {
     padding: 0 0.8rem;
     color: var(--muted);
     font-size: 0.9rem;
 }

 .input-group select,
 .input-group input {
     flex: 1;
     padding: 0.7rem;
     border: none;
     outline: none;
     font-size: 0.9rem;
     background: transparent;
     color: var(--text);
 }

 .input-group select:disabled,
 .input-group input:disabled {
     background: #f3f4f6;
     cursor: not-allowed;
 }

 .eye {
     padding: 0 0.8rem;
     cursor: pointer;
     color: var(--muted);
 }

 .remember-me {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     margin-bottom: 1.5rem;
 }

 .remember-me input[type="checkbox"] {
     width: 1rem;
     height: 1rem;
 }

 .remember-me label {
     font-size: 0.9rem;
     color: var(--muted);
     cursor: pointer;
 }

 /* ==========================
           MESSAGES
           ========================== */
 .message {
     padding: 0.8rem 1rem;
     border-radius: var(--radius-sm);
     margin-bottom: 1.5rem;
     font-size: 0.9rem;
     text-align: center;
 }

 .message.error {
     background: #fef2f2;
     color: #dc2626;
     border: 1px solid #fecaca;
 }

 .message.success {
     background: #f0fdf4;
     color: #16a34a;
     border: 1px solid #bbf7d0;
 }

 .db-error-message {
     margin-top: 1.5rem;
     padding: 1rem;
     background: #fef3c7;
     border: 1px solid #fbbf24;
     border-radius: var(--radius-sm);
     font-size: 0.85rem;
     color: #92400e;
     text-align: center;
 }

 /* ==========================
           SELECT STYLES
           ========================== */
 .input-group select {
     appearance: none;
     -webkit-appearance: none;
     -moz-appearance: none;
     background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
     background-repeat: no-repeat;
     background-position: right 0.7rem center;
     background-size: 1rem;
     padding-right: 2rem;
 }

 .input-group select optgroup {
     font-weight: 600;
     color: var(--primary);
 }

 .input-group select option {
     padding: 0.5rem;
     color: var(--text);
 }

 /* ==========================
           FOOTER
           ========================== */
 .login-footer {
     margin-top: 2rem;
     text-align: center;
     color: var(--muted);
     font-size: 0.8rem;
     padding-top: 1rem;
     border-top: 1px solid #e5e7eb;
 }

 /* ==========================
           RESPONSIVE
           ========================== */
 @media (max-width: 768px) {
     .login-wrapper {
         grid-template-columns: 1fr;
     }

     .login-left {
         padding: 2rem;
     }

     .login-right {
         padding: 2rem;
     }

     .brand-logo img {
         height: 50px;
         width: 50px;
     }

     .brand-text h1 {
         font-size: 1.5rem;
     }

     .info-card {
         display: none;
     }

     .brand-section {
         margin-bottom: 0px;
     }
 }

 @media (max-width: 480px) {

     .login-left,
     .login-right {
         padding: 1.5rem;
     }

     .login-container {
         max-width: 100%;
     }

     .brand-logo {
         flex-direction: column;
         text-align: center;
         gap: 0.5rem;
     }

     .brand-text h1 {
         font-size: 1.3rem;
     }
 }

 /* ==========================
           ANIMATIONS
           ========================== */
 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .login-container {
     animation: fadeIn 0.5s ease-out;
 }

 .logo-circle {
     height: 60px;
     width: 60px;
     background: white;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-top: 8px;
 }