    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        height: 100%;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        padding: 0;
        background: linear-gradient(135deg, #1a202c 0%, #000000 100%);
        background-attachment: fixed;
    }

    .login-container {
        min-height: 100dvh;
        /* Dynamic viewport height for mobile */
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 20px;
        position: relative;
        width: 100%;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        max-width: 500px;
        width: 100%;
        animation: slideUp 0.5s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .login-header {
        background: linear-gradient(135deg, #1a202c 0%, #000000 100%);
        padding: 40px 30px;
        text-align: center;
        color: white;
    }

    .login-header h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .login-header p {
        margin: 8px 0 0 0;
        opacity: 0.9;
        font-size: 14px;
    }

    .login-body {
        padding: 40px 30px;
    }

    .form-group {
        margin-bottom: 24px;
        position: relative;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-weight: 500;
        font-size: 14px;
    }

    .form-input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: #f9fafb;
    }

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-input.is-invalid {
        border-color: #ef4444;
        background: #fef2f2;
    }

    .invalid-feedback {
        color: #ef4444;
        font-size: 13px;
        margin-top: 6px;
        display: block;
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        margin-bottom: 24px;
    }

    .checkbox-input {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        cursor: pointer;
        accent-color: #667eea;
    }

    .checkbox-label {
        color: #6b7280;
        font-size: 14px;
        cursor: pointer;
        user-select: none;
    }

    .btn-login {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #1a202c 0%, #000000 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .login-footer {
        text-align: center;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #e5e7eb;
    }

    .login-footer p {
        color: #6b7280;
        font-size: 14px;
        margin: 0;
    }

    .login-footer a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .login-footer a:hover {
        color: #764ba2;
        text-decoration: underline;
    }

    .decorative-circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    .circle-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }

    .circle-2 {
        width: 200px;
        height: 200px;
        bottom: -100px;
        left: -100px;
    }

    @media (max-width: 576px) {
        .login-container {
            padding: 15px;
        }

        .login-card {
            max-width: 100%;
        }

        .login-header {
            padding: 30px 20px;
        }

        .login-header h1 {
            font-size: 22px;
        }

        .login-header p {
            font-size: 13px;
        }

        .login-body {
            padding: 25px 20px;
        }

        .form-input {
            padding: 12px 14px;
            font-size: 16px;
            /* Prevents zoom on iOS */
        }

        .btn-login {
            padding: 12px;
            font-size: 15px;
        }

        .decorative-circle {
            display: none;
            /* Hide decorative elements on mobile */
        }
    }

    @media (max-width: 380px) {
        .login-container {
            padding: 10px;
        }

        .login-header {
            padding: 25px 15px;
        }

        .login-header h1 {
            font-size: 20px;
        }

        .login-body {
            padding: 20px 15px;
        }

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