html {
    font-size: 15.4px; /* 14px * 1.1 = 15.4px for ~110% text scaling */
}

/* Reset to normal size on narrow screens */
@media (max-width: 750px) {
    html {
        font-size: 14px;
    }
}

body {
        /* Remove overflow hidden to allow scrolling */
        /* overflow: hidden; */
    }

    .login-page {
        min-height: 100vh; /* Change from height to min-height */
        background-image: url('/images/login-background-1.jpg');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        overflow-y: auto; /* Allow vertical scrolling */
    }

    .login-container {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: var(--qikapp-radius-large);
        width: 100%;
        max-width: 500px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        margin: auto; /* Center the container */
    }

    .login-title {
        text-align: center;
        color: var(--text-white);
        font-size: 1.2rem;
    }

    .login-form-container {
        padding: 30px 25px;
    }

    .login-links {
        margin-top: 10px;
    }

    .login-links p {
        margin-bottom: 5px;
    }

    .login-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .login-links a:hover {
        color: rgba(255, 255, 255, 1);
        text-decoration: underline;
    }

    .checkbox label {
        color: rgba(255, 255, 255, 0.9);
    }

    .checkbox .form-check-input {
        background-color: rgba(20, 20, 20, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .checkbox .form-check-input:checked {
        background-color: rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .checkbox .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
    }

    #login-submit {
        margin-top: 10px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: var(--transition-medium);
        color: white;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    #login-submit:hover {
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
    }
    .logo-container{
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        text-align: center;
    }

    .oelogo{
        position: absolute;
        top: 5px;
        right: 5px;
        height: 30px;
        width: auto;
    }

    .theialogo{
        height: 75px;
        width: auto;
        margin: 20px auto 0 auto;
    }

    /* Custom input group styling */
    .input-group-custom {
        position: relative;
        margin-bottom: 1rem;
    }

    .custom-label {
        position: absolute;
        left: 12px;
        top: 8px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        pointer-events: none;
        z-index: 1;
    }

    /* Override browser autofill styles */
    .custom-input:-webkit-autofill,
    .custom-input:-webkit-autofill:hover,
    .custom-input:-webkit-autofill:focus,
    .custom-input:-webkit-autofill:active {
        -webkit-text-fill-color: #ffffff !important;
        -webkit-box-shadow: 0 0 0px 1000px rgba(20, 20, 20, 0.6) inset !important;
        box-shadow: 0 0 0px 1000px rgba(20, 20, 20, 0.6) inset !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        transition: background-color 5000s ease-in-out 0s;
        font-size: 1rem !important;
        font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        letter-spacing: normal !important;
        caret-color: #ffffff !important;
        padding-top: 28px !important;
        padding-bottom: 8px !important;
    }

    .forgot {
        font-weight: 600;
        border: solid 2px rgba(239, 68, 68, 0.8);
        color: #ffffff;
        background-color: rgba(239, 68, 68, 0.2);
        margin-right:5px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .forgot:hover {
        background-color: rgba(239, 68, 68, 0.4);
        border-color: rgba(239, 68, 68, 1);
        transform: translateY(-1px);
    }

    .register {
        font-weight: 600;
        border: solid 2px rgba(59, 130, 246, 0.8);
        color: #ffffff;
        background-color: rgba(59, 130, 246, 0.2);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .register:hover {
        background-color: rgba(59, 130, 246, 0.4);
        border-color: rgba(59, 130, 246, 1);
        transform: translateY(-1px);
    }

    .btn-primary {
        background-color: var(--glass-bg-dark) !important;
        border-radius: var(--qikapp-radius-tiny) !important;
        border: var(--qikapp-border-medium) solid var(--glass-bg) !important;
        
    }

    .custom-input {
        width: 100%;
        background-color: rgba(20, 20, 20, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--qikapp-radius-tiny);
        height: 58px;
        padding: 28px 12px 8px 12px;
        color: #ffffff;
        font-size: 1rem;
        font-family: 'Poppins', Arial, Helvetica, sans-serif;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: normal;
        transition: all 0.3s ease;
        outline: none;
    }

    .custom-input:focus {
        background-color: rgba(30, 30, 30, 0.8);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .custom-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .back {
        background-color: transparent !important;
        border-radius: var(--qikapp-radius-small) !important;
        border: var(--qikapp-border-medium) solid var(--glass-bg) !important;
        color: var(--glass-bg) !important;
    }


    /* Only show validation messages when they contain text */
    .validation-message:empty {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }

    .validation-message {
        font-weight: 500 !important;
        background-color: rgba(220, 53, 69, 0.95) !important;
        color: white !important;
        border-radius: var(--qikapp-radius-small);
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-top: 5px;
        margin-bottom: 5px;
        border-left: 4px solid #dc3545;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: block;
        line-height: 1.4;
    }

    /* Ensure text-danger validation messages are visible */
    .text-danger.validation-message {
        color: white !important;
        background-color: rgba(220, 53, 69, 0.95) !important;
    }

    /* Remove Bootstrap's default bottom margin on ul inside validation messages */
    .validation-message ul {
        margin-bottom: 0 !important;
    }

    /* Target Bootstrap's default text-danger class when used with validation */
    span.text-danger:empty {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }

    span.text-danger {
        font-weight: 500;
        background-color: rgba(220, 53, 69, 0.95);
        color: white !important;
        border-radius: var(--qikapp-radius-small);
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-top: 5px;
        border-left: 4px solid #dc3545;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: block;
        line-height: 1.4;
    }

    .password-requirements {
        background: rgba(0, 0, 0, 0.6);
        padding: 12px;
        margin: 8px 0 16px 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .password-requirements small {
        color: rgba(255, 255, 255, 0.9); /* White instead of red */
        font-weight: 400; /* Remove bold - changed from 500 to 400 */
        margin-bottom: 8px;
        display: block;
        font-size: 0.75rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .requirements-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
    }

    .password-requirements .requirement-item {
        display: flex;
        align-items: center;
        margin: 0;
        font-size: 0.75rem;
        font-weight: 400;
        transition: all 0.2s ease;
        padding: 0;
        line-height: 1.2;
    }
    
    .password-requirements .requirement-icon {
        margin-right: 6px;
        font-weight: bold;
        width: 12px;
        height: 12px;
        text-align: center;
        line-height: 12px;
        border-radius: 50%; /* Changed from 2px to 50% for circles */
        transition: all 0.2s ease;
        font-size: 0.65rem;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: "bootstrap-icons" !important;
    }

    .password-requirements .requirement-item.valid .requirement-icon::before {
        content: "\f26e"; /* bi-check */
    }
    
    .password-requirements .requirement-item.invalid .requirement-icon::before {
        content: "\f659"; /* bi-x */
        font-size: 0.55rem; /* Smaller font size for X icons */
    }
    
    .password-requirements .requirement-item.neutral .requirement-icon::before {
        content: "\f659"; /* bi-x */
        font-size: 0.55rem; /* Smaller font size for X icons */
    }

    .password-requirements .requirement-text {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .password-requirements .requirement-item.valid .requirement-text {
        color: #90EE90;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }
    
    .password-requirements .requirement-item.valid .requirement-icon {
        background-color: #28a745;
        color: white;
        box-shadow: 0 0 4px rgba(40, 167, 69, 0.4);
    }
    
    .password-requirements .requirement-item.invalid .requirement-text {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .password-requirements .requirement-item.invalid .requirement-icon {
        background-color: rgba(220, 53, 69, 0.7);
        color: white;
    }
    
    .password-requirements .requirement-item.neutral .requirement-text {
        color: rgba(255, 182, 182, 0.9); /* Light red instead of grey */
    }
    
    .password-requirements .requirement-item.neutral .requirement-icon {
        background-color: rgba(220, 53, 69, 0.7); /* Red instead of grey */
        color: white;
    }

    /* Password field with toggle button */
    .password-group {
        position: relative;
    }

    .password-group .custom-input {
        padding-right: 45px;
        padding-top: 28px;
        padding-bottom: 8px;
    }

    .password-toggle-btn {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%);
        z-index: 10;
        color: rgba(255, 255, 255, 0.6);
        font-size: 18px;
        cursor: pointer;
        background: none !important;
        padding: 4px;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
        user-select: none;
        transition: all 0.3s ease;
    }

    .password-toggle-btn:hover {
        color: rgba(255, 255, 255, 1);
    }

    /* Ensure validation messages don't affect positioning */
    .validation-message {
        position: relative;
        z-index: 1;
        margin-top: 5px;
    }

    /* Terms and conditions styling */
    .btn-outline-light {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .form-check-label {
        font-size: 0.8rem !important;
    }

    .terms-link-button {
        background: none !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: underline !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        display: inline !important;
    }

    .terms-link-button:hover {
        color: white !important;
        text-decoration: underline !important;
    }

    .terms-link-button:focus {
        outline: 1px dotted rgba(255, 255, 255, 0.7) !important;
        outline-offset: 2px !important;
    }

    @media screen and (max-width: 564px) {
        .oelogo{
            height: 25px;
            top: 3px;
            right: 3px;
        }
        .theialogo{
            height:60px;
        }

        .login-container {
            width: 100%;
        }


        .custom-input {
            height: 52px;
            padding: 26px 10px 6px 10px;
            font-size: 0.95rem;
            font-family: 'Poppins', Arial, Helvetica, sans-serif;
            font-weight: 400;
        }

        .password-group .custom-input {
            padding-right: 45px;
            padding-top: 26px;
            padding-bottom: 6px;
        }
        
        .custom-label {
            font-size: 0.7rem;
            top: 6px;
        }

        .custom-input:-webkit-autofill,
        .custom-input:-webkit-autofill:hover,
        .custom-input:-webkit-autofill:focus {
            padding-top: 26px !important;
            padding-bottom: 6px !important;
        }

        .forgot, .register{
            font-size: 0.9rem;
            padding: 8px 0 8px 0;
        }
        
        .btn-primary{
            font-size: 01rem;
            padding: 8px;
        }
    }

        @media screen and (max-width: 400px) {

            .oelogo{
                height: 20px;
                top: 2px;
                right: 2px;
            }
            .theialogo{
                height:50px;
            }
        }


