/* --- Global & Reset Styles --- */
:root {
    --blue: #042043;
    --teal: #26c3c3;
    --light-gray: #c0c0c0;
    --white: #ffffff;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --light-gray-bg: #F5F7FA;
}

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

body {
    font-family: var(--font-helvetica);
    background: radial-gradient(circle at 10% 20%, rgba(38, 195, 195, 0.04) 0%, rgba(4, 32, 67, 0.02) 90%), var(--white);
    color: var(--blue);
    min-height: 100vh;
}

/* --- Layout Containers --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem 1rem 60px;
}

.content-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Logo --- */
.logo {
    max-width: 80%;
    margin-bottom: 1rem;
    margin-top: -2rem;
}

/* --- Header Text --- */
.header-text h1 {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    white-space: normal;
}

.header-text h1 .teal {
    color: var(--teal);
}

.header-text h2 {
    font-family: var(--font-montserrat);
    font-weight: 400; /* Regular */
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.25rem;
}

/* --- Login Form --- */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.login-form .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0 16px; /* Padding moved to this container */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-icon:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(38, 195, 195, 0.15);
}

.input-with-icon .icon {
    color: var(--blue);
    margin-right: 8px;
    font-size: 1.2rem; /* Adjust icon size */
}

.login-form input {
    padding: 14px 0; /* Adjusted padding */
    border: none; /* Border moved to parent */
    border-radius: 0; /* Border radius moved to parent */
    font-size: 1rem;
    transition: box-shadow 0.3s ease; /* Only box-shadow transition */
    flex-grow: 1;
}

.login-form input::placeholder {
    color: var(--blue);
    font-weight: 700; /* Bold */
}

.login-form input:focus, .login-form input:focus-visible {
    outline: none !important;
}

.error-message {
    color: var(--teal);
    font-size: 1rem;
    text-align: center;
    margin-top: 4px;
    min-height: 1.2em;
    font-weight: bold;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login-form button {
    width: 100%;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    padding: 14px 16px;
    min-height: 48px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-icon {
    height: 1.5em;
    margin-right: 0.5rem;
}

.button-separator {
    display: inline-block;
    width: 1px;
    height: 1.5em;
    background-color: var(--white);
    margin-right: 0.5rem;
}

.login-form button:hover {
    background-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 195, 195, 0.2);
}

/* --- Trust Badge --- */
.trust-badge-container {
    margin-top: 0.75rem;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Services List --- */
.services-list {
    margin-top: 0.5rem;
}

.services-list p {
    font-family: var(--font-montserrat);
    font-weight: 400; /* Regular */
    font-size: clamp(10px, 4.3vw, 1.4rem);
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* --- Footer CTA --- */
.footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cta p {
    font-weight: 300; /* Light */
    font-size: 1.25rem;
}

.footer-icon {
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.separator {
    display: inline-block;
    width: 1px;
    height: 1.2em;
    background-color: var(--white);
    vertical-align: middle;
    margin: 0 8px;
}

.simple-text {
    font-family: var(--font-helvetica);
    font-weight: bold;
    color: var(--teal);
}

/* --- Responsive Adjustments (Tablets and up) --- */
@media (min-width: 768px) {
    .content-wrapper {
        max-width: 480px;
    }
}

/* --- Responsive Adjustments (Mobile and Small Screens) --- */
@media (max-width: 767px) {
    .main-container {
        min-height: calc(100vh - 60px);
        padding: 1.5rem 1rem 2rem;
    }

    .footer-cta {
        position: relative;
        height: 60px;
        margin-top: auto;
    }

    .header-text {
        margin-top: 1.5rem; /* Push copy down one line on mobile */
    }

    .trust-badge-container {
        margin-top: 2rem; /* Push trust index badge down one line on mobile */
    }
}

@media (max-width: 400px) {
    .main-container {
        padding: 1rem 0.75rem 1rem;
    }

    .logo {
        max-width: 60%;
        margin-top: -1rem;
        margin-bottom: 0.75rem;
    }

    .header-text {
        margin-top: 1.25rem; /* Push copy down on very small screens */
    }

    .header-text h1 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .header-text h2 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .login-form .input-group {
        margin-bottom: 6px;
    }

    .input-with-icon {
        padding: 0 12px;
    }

    .login-form input {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .login-form button {
        padding: 12px;
        font-size: 1rem;
    }

    .services-list {
        margin-top: 0.25rem;
    }

    .trust-badge-container {
        margin-top: 1.75rem; /* Push trust index badge down on very small screens */
        min-height: 60px;
    }
}

/* --- Standard Modal Containers --- */
.modal-container-standard {
    max-width: 1050px !important;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.modal-header-standard {
    height: 70px !important;
    min-height: 70px !important;
    box-sizing: border-box;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    position: relative;
}

.modal-header-standard .close-button {
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}