﻿/* =========================================================
   Base / Reset
   ========================================================= */
html, body {
    height: 100%;
    margin: 0;
}
body {
    background-color: #f7f7f7;
}

/* =========================================================
   Typography Utilities
   ========================================================= */
.display-sub {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -1px;
}

.body-medium {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    color: #1F365D;
}

.body-bold {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #1F365D;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.title-h4-semi-bold {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   Login Layout & Card
   ========================================================= */
.login-container {
    width: 100%;
    max-width: 655px;
    border-radius: 8px;
}

.login-card {
    background-color: #fbf5e8;
    padding-top: 5px !important;
}

/* =========================================================
   Login Header (Option A – Left Aligned)
   ========================================================= */
.login-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-logo {
    max-width: 145px;
    height: auto;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1F365D;
    margin: 0;
    letter-spacing: -0.3px;
}

/* =========================================================
   Alerts & Validation
   ========================================================= */
.custom-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dc3545;
    background-color: #FFFBFA;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
}

.login-error-alert {
    margin-top: 0;
}

/* =========================================================
   Form Containers
   ========================================================= */
.username-container,
.password-container {
    color: #1F365D;
}

/* =========================================================
   Links
   ========================================================= */
.forgot-password-link,
.signup-link {
    color: #1F365D;
    cursor: pointer;
}

.signup-link {
    font-size: 16px;
}

/* =========================================================
   Login Button Wrapper
   ========================================================= */
.login-btn-wrapper {
    background-color: #1F365D;
    border-radius: 7px;
}

/* =========================================================
   Inputs – Modern Enterprise Styling
   ========================================================= */
.form-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1F365D;
    background-color: #ffffff;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .form-input:hover {
        border-color: #9fb0cf;
    }

    .form-input:focus {
        border-color: #1F365D;
        box-shadow: 0 0 0 3px rgba(31, 54, 93, 0.15);
        outline: none;
    }

    .form-input::placeholder {
        color: #9aa6bf;
        font-weight: 400;
    }

    .form-input.input-validation-error {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }

    .form-input:disabled {
        background-color: #f2f4f8;
        color: #8a94a6;
        cursor: not-allowed;
    }

/* Autofill fix (Chrome / Edge) */
input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1F365D;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   Accessibility & Focus Helpers
   ========================================================= */
.no-outline:focus {
    outline: none;
    box-shadow: none;
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */
@media (max-width: 768px) {
    .authenticator-wrapper {
        height: auto;
        align-items: flex-start;
        overflow: auto;
    }
}

@media (max-width: 576px) {
    .login-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .form-input {
        font-size: 12px;
        padding: 10px 14px;
        min-height: 40px;
    }
    .body-medium {
        font-size: 14px;
        
    }
        font-size: .login-title {
        font-size: 1.25rem;
    }
        .login-title{
            font-size:20px;
        }
}
