* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
            min-height: -webkit-fill-available;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        html {
            height: -webkit-fill-available;
        }
a {
  text-decoration: none;
}

a.page-home {
    color: #fff;
    text-decoration: none;
}
        /* Light pattern background */
        .background-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            background-image: 
                radial-gradient(circle at 20% 20%, #6c757d 1px, transparent 1px),
                radial-gradient(circle at 80% 80%, #6c757d 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: 1;
        }

        .login-container {
            background: white;
            border: 1px solid #e9ecef;
            padding: 40px 35px;
            border-radius: 16px;
            box-shadow: 
                0 10px 30px rgba(0,0,0,0.08),
                0 1px 8px rgba(0,0,0,0.05);
            width: 100%;
            max-width: 400px;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .logo-container {
            margin-bottom: 30px;
        }

        .logo {
            width: 100px;
            height: 80px;
            margin: 0 auto 20px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            border: 2px solid #f8f9fa;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .app-title {
            color: #212529;
            margin-bottom: 8px;
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .app-subtitle {
            color: #6c757d;
            margin-bottom: 35px;
            font-size: 15px;
            font-weight: 500;
        }

        .form-container {
            margin-bottom: 25px;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
        }

        .input-label {
            display: block;
            text-align: left;
            margin-bottom: 8px;
            color: #495057;
            font-size: 14px;
            font-weight: 600;
        }

        .input-field {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 16px;
            background: #f8f9fa;
            color: #212529;
            transition: all 0.3s ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .input-field:focus {
            outline: none;
            border-color: #0d6efd;
            background: white;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

        .input-field::placeholder {
            color: #adb5bd;
            font-weight: 400;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            
            background: none;
            border: none;
            color: #6c757d;
            font-size: 16px;
            cursor: pointer;
            padding: 5px;
            user-select: none;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: #0d6efd;
        }

        .login-button {
            width: 100%;
            padding: 16px;
            background: #0d6efd;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
            position: relative;
            overflow: hidden;
        }

        .login-button:hover {
            background: #0b5ed7;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
        }

        .login-button:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
        }

        .login-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .forgot-link {
            color: #0d6efd;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 10px;
            display: inline-block;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .forgot-link:hover {
            background-color: rgba(13, 110, 253, 0.1);
            text-decoration: underline;
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c2c7;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: none;
            text-align: left;
        }

        .loading-spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Success message */
        .success-message {
            background: #d1e7dd;
            color: #0f5132;
            border: 1px solid #badbcc;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: none;
            text-align: left;
        }

        /* Additional light theme elements */
        .divider {
            position: relative;
            margin: 25px 0;
            text-align: center;
            color: #adb5bd;
            font-size: 13px;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #e9ecef;
            z-index: 1;
        }

        .divider span {
            background: white;
            padding: 0 15px;
            position: relative;
            z-index: 2;
        }

        /* iOS specific styles */
        @supports (-webkit-touch-callout: none) {
            .input-field {
                font-size: 16px; /* Prevents zoom on iOS */
            }
        }

        /* Mobile landscape */
        @media screen and (max-height: 600px) and (orientation: landscape) {
            .login-container {
                padding: 25px 30px;
                max-width: 380px;
            }
            
            .logo {
                width: 70px;
                height: 60px;
                margin-bottom: 15px;
            }
            
            .app-title {
                font-size: 22px;
            }
            
            .app-subtitle {
                margin-bottom: 25px;
            }
            
            .input-field {
                padding: 14px 18px;
            }
            
            .login-button {
                padding: 14px;
            }
        }

        /* Very small screens */
        @media screen and (max-width: 320px) {
            .login-container {
                padding: 30px 25px;
                margin: 15px;
            }
            
            .app-title {
                font-size: 22px;
            }
        }

        /* Tablet and desktop */
        @media screen and (min-width: 768px) {
            .login-container {
                padding: 45px 40px;
            }
            
            .login-button:not(:disabled):hover {
                background: #0b5ed7;
            }
        }
        .input-group {
    position: relative;
    margin-bottom: 20px;
}
.select-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    background: #f8f9fa;
    color: #212529;
    transition: all 0.3s ease;
    cursor: pointer;
}
