/* ======================================== */
/* Font Imports */
/* ======================================== */
@font-face {
    font-family: "Roboto";
    src: url(/fonts/Roboto-VariableFont_wdth,wght.ttf);
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Italic";
    src: url(/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf);
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ======================================== */
/* Password Toggle */
/* ======================================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6C757D;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #0D5257;
}

.password-toggle-btn:focus {
    outline: none;
}

/* ======================================== */
/* Resend Code (RegisterVerify) */
/* ======================================== */
.resend-container {
    display: flex;
    align-items: center;
    margin-top: -12px;
    font-size: 0.8rem;
}

.resend-text {
    color: #6C757D;
    font-size: 0.8rem;
}

.resend-link {
    background: none;
    border: none;
    padding: 0;
    color: #0D5257;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.resend-link:hover {
    color: #087990;
}

/* ======================================== */
/* Reset and Base Styles */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FAFBFC;
    min-height: 100vh;
}

/* ======================================== */
/* Main Layout Container */
/* ======================================== */
.outer-auth-div {
    display: flex;
    min-height: 100vh;
    background-color: #FAFBFC;
    opacity: 1;
}

/* ======================================== */
/* Left Panel - Branding */
/* ======================================== */
.left-auth-div {
    display: flex;
    flex-direction: column;
    background-image: url(/images/auth/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F8F9FA;
    width: 50%;
    flex: 0 0 50%;
    position: relative;
    min-height: 100vh;
}

.left-auth-div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 82, 87, 0.3) 0%, rgba(8, 121, 144, 0.2) 100%);
    z-index: 1;
}

.left-auth-div > * {
    position: relative;
    z-index: 2;
}

.auth-full-screen-header-div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.h1-auth {
    text-align: center;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-image-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.auth-panel-logo {
    height: 4rem;
    width: auto;
    max-width: 100%;
    margin-top: 0;
}

.p-auth {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-full-screen-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1.75rem;
    font-size: 1rem;
    font-weight: 400;
}

.auth-full-screen-footer a {
    color: #F8F9FA;
    text-decoration: none;
}

.auth-full-screen-footer p {
    color: #F8F9FA;
    margin: 0;
}

/* ======================================== */
/* Right Panel - Auth Form */
/* ======================================== */
.right-auth-div {
    width: 50%;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.right-auth-inner-div {
    max-width: 32rem;
    width: 100%;
    margin: 0 auto;
}

/* ======================================== */
/* Top Navigation */
/* ======================================== */
.top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    position: relative;
    top: 0;
}

.back-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 7px 0px;
    gap: 6px;
    width: 53px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-link a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #0D5257;
    transition: all 0.2s ease;
}

.back-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #0D5257;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.back-link a img,
.back-button img {
    transition: all 0.2s ease;
}

a.auth-nav-link,
a.auth-nav-link:visited,
NavLink.auth-nav-link,
NavLink.auth-nav-link:visited,
.auth-nav-link,
.auth-nav-link:visited,
.back-link a,
.back-link a:visited,
.back-button,
.back-button:visited {
    color: #0D5257;
}

a.auth-nav-link:hover,
a.auth-nav-link:active,
a.auth-nav-link:focus,
NavLink.auth-nav-link:hover,
NavLink.auth-nav-link:active,
NavLink.auth-nav-link:focus,
.auth-nav-link:hover,
.auth-nav-link:active,
.auth-nav-link:focus,
.back-link a:hover,
.back-link a:active,
.back-link a:focus,
.back-button:hover,
.back-button:active,
.back-button:focus {
    color: #087990;
}

a.auth-nav-link:hover,
a.auth-nav-link:active,
a.auth-nav-link:focus,
NavLink.auth-nav-link:hover,
NavLink.auth-nav-link:active,
NavLink.auth-nav-link:focus,
.auth-nav-link:hover,
.auth-nav-link:active,
.auth-nav-link:focus {
    text-decoration: underline;
    transform: translateY(-1px);
}

.back-link:hover a img,
.back-button:hover img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(15%) saturate(2000%) hue-rotate(180deg) brightness(0.8) contrast(0.8);
}

/* Auth Navigation */
.auth-nav-div {
    display: flex;
    justify-content: flex-end;
    font-size: 0.875rem;
    color: #374151;
}

.auth-nav-text {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 400;
    display: flex;
    gap: 0.4rem;
    margin: 0;
}

.auth-nav-link {
    color: #0D5257;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Specific override for Login link to ensure it overrides Bootstrap */
#loginLink,
#loginLink:visited,
a#loginLink,
a#loginLink:visited,
.auth-nav-text a,
.auth-nav-text a:visited {
    color: #0D5257;
}

#loginLink:hover,
#loginLink:active,
#loginLink:focus,
a#loginLink:hover,
a#loginLink:active,
a#loginLink:focus,
.auth-nav-text a:hover,
.auth-nav-text a:active,
.auth-nav-text a:focus {
    color: #087990;
    text-decoration: underline;
}

/* ======================================== */
/* Form Container */
/* ======================================== */
.auth-form-div {
    background: #FFFFFF;
/*    border: 1px solid #E5E7EB;*/
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    padding: 2rem;
    margin: 0 auto;
    max-width: 512px;
    width: 100%;
}

/* ======================================== */
/* Join Us Section */
/* ======================================== */
.join-us-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.2;
}

.join-us-description {
    font-size: 1.25rem;
    color: #444444;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

/* ======================================== */
/* Account Selection Container */
/* ======================================== */
.account-group-label {
    font-size: 1.25rem;
    color: #444444;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.account-selection-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-info-icon {
    font-size: 0.85rem;
    color: #087990;
    margin-left: 4px;
    vertical-align: middle;
    cursor: default;
    display: none;
}

/* Account Cards */
.account-card {
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    text-align: left;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    text-decoration: none;
    min-height: 100px;
}

.account-card:hover {
    border-color: #087990;
    box-shadow: 0 4px 12px rgba(8, 121, 144, 0.1);
    transform: translateY(-2px);
}

.account-card:focus {
    border-color: #63ADB3;
    background-color: #e9f5ff;
    outline: none;
}

.account-icon {
    width: 48px;
    height: 48px;
    background: #E9F8F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.account-text {
    flex-grow: 1;
    min-width: 0;
}

.account-text h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

.account-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #6C757D;
    line-height: 1.4;
}

.account-arrow {
    margin-left: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
    display: none;
}

.account-card:hover .account-arrow {
    transform: translateX(4px);
}

/* ======================================== */
/* Registration Form */
/* ======================================== */
.registration-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.registration-subheading {
    font-size: 1.125rem;
    color: #6C757D;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-fields--single {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.required {
    color: #EF4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #DADADA;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #0D5257;
    box-shadow: 0 0 0 3px rgba(13, 82, 87, 0.1);
}

.form-control.modified.invalid,
input.form-control.modified.invalid {
    border-color: #DC2626;
    box-shadow: inset 0 0 0 1px #DC2626;
}

.form-control.modified.invalid:focus,
input.form-control.modified.invalid:focus {
    border-color: #DC2626;
    box-shadow: inset 0 0 0 1px #DC2626, 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-control::placeholder {
    color: #9CA3AF;
}

.form-control:disabled {
    background-color: #F9FAFB;
    color: #6B7280;
    cursor: not-allowed;
}

.validation-message {
    color: #DC2626;
    font-size: 0.75rem;
}

.error.pageLevel {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.error.pageLevel p {
    color: #DC2626;
    margin: 0;
    font-size: 0.875rem;
}

/* Terms and Conditions */
.terms-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #F8F9FA;
    border-radius: 0.5rem;
    border: 1px solid #E9ECEF;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terms-container input[type="checkbox"] {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.terms-label {
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    line-height: 1.4;
}

.terms-label a {
    color: #0D5257;
    text-decoration: none;
    font-weight: 500;
}

.terms-label a:hover {
    color: #087990;
    text-decoration: underline;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 1rem;
}

.buttons--centered {
    align-items: center;
}
.buttons--centered .submit-button.submit-button--centered,
.auth-form-div .buttons--centered .submit-button.submit-button--centered{
    width: unset;
}


.submit-button {
    background-color: #0D5257;
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.submit-button--auto {
    width: auto;
    padding: 0.625rem 2rem;
}

.submit-button:hover {
    background-color: #087990;
}

.submit-button:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

/* ======================================== */
/* Mobile Footer */
/* ======================================== */
.mobile-footer {
    display: none;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #6C757D;
    font-size: 0.875rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-footer p {
    margin: 0;
    color: #6C757D;
}

.mobile-footer a {
    color: #6C757D;
    text-decoration: none;
}

/* ======================================== */
/* Responsive Design */
/* ======================================== */

/* Tablet: 1024px and below */
@media only screen and (max-width: 1024px) {
    .outer-auth-div {
        flex-direction: column;
        min-height: 100vh;
        background: #FFFFFF;
    }
    
    .left-auth-div {
        display: none;
    }
    
    .right-auth-div {
        flex: 1;
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: center;
        align-items: center;
        background: #FFFFFF;
        overflow-y: auto;
    }
    
    .right-auth-inner-div {
        max-width: unset;
        margin: 0 auto;
        width: 90%;
    }
    
    .join-us-title {
        font-size: 2.25rem;
    }
    
    .join-us-description {
        font-size: 1.125rem;
    }
    
    .account-text h5 {
        font-size: 1rem;
    }
    
    .account-text p {
        font-size: 0.9rem;
    }
    
    .top-navigation {
        margin-bottom: 24px;
    }
    
    .auth-nav-text {
        text-align: right;
        color: #212529;
        font-size: 1rem;
    }
    
    a.auth-nav-link,
    a.auth-nav-link:visited,
    NavLink.auth-nav-link,
    NavLink.auth-nav-link:visited,
    .auth-nav-link,
    .auth-nav-link:visited {
        color: #0D5257;
        text-decoration: none;
        font-size: 1rem;
    }
    
    a.auth-nav-link:hover,
    a.auth-nav-link:active,
    a.auth-nav-link:focus,
    NavLink.auth-nav-link:hover,
    NavLink.auth-nav-link:active,
    NavLink.auth-nav-link:focus,
    .auth-nav-link:hover,
    .auth-nav-link:active,
    .auth-nav-link:focus {
        color: #087990;
        text-decoration: underline;
    }
    
    .auth-full-screen-footer {
        display: none;
    }
    
    .mobile-footer {
        display: flex;
        margin-top: 1rem;
        padding: 0.75rem 2rem;
    }
}

/* Mobile: 768px and below */
@media only screen and (max-width: 768px) {
    .outer-auth-div {
        background: #FFFFFF;
    }
    
    .right-auth-div {
        width: 100%;
        padding: 0.5rem;
        justify-content: center;
        align-items: center;
        background: #FFFFFF;
        overflow-y: auto;
    }
    
    .right-auth-inner-div {
        max-width: 100%;
        width: 95%;
        margin: 0 auto;
    }
    
    .auth-form-div {
        padding: 1.5rem;
    }
    
    .join-us-title {
        font-size: 2rem;
    }
    
    .join-us-description {
        font-size: 1rem;
    }
    
    .account-text h5 {
        font-size: 0.9rem;
    }
    
    .account-text p {
        font-size: 0.8rem;
    }
    
    .account-card {
        min-height: 80px;
        padding: 0.75rem;
    }
    
    .account-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .top-navigation {
        margin-bottom: 12px;
    }
    
    .auth-nav-text {
        font-size: 0.9rem;
        text-align: right;
    }
    
    a.auth-nav-link,
    a.auth-nav-link:visited,
    NavLink.auth-nav-link,
    NavLink.auth-nav-link:visited,
    .auth-nav-link,
    .auth-nav-link:visited {
        font-size: 0.9rem;
        font-weight: 400;
        color: #0D5257;
    }
    
    a.auth-nav-link:hover,
    a.auth-nav-link:active,
    a.auth-nav-link:focus,
    NavLink.auth-nav-link:hover,
    NavLink.auth-nav-link:active,
    NavLink.auth-nav-link:focus,
    .auth-nav-link:hover,
    .auth-nav-link:active,
    .auth-nav-link:focus {
        color: #087990;
    }
    
    .registration-heading {
        font-size: 1.75rem;
    }
    
    .registration-subheading {
        font-size: 1rem;
    }
    
    .form-fields {
        grid-template-columns: 1fr;
    }
    
    .auth-full-screen-footer {
        display: none;
    }
    
    .mobile-footer {
        display: flex;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Extra small mobile: 393px and below */
@media only screen and (max-width: 393px) {
    .outer-auth-div {
        background: #FFFFFF;
    }
    
    .right-auth-div {
        width: 100%;
        padding: 0.75rem;
        justify-content: center;
        align-items: center;
        background: #FFFFFF;
    }
    
    .auth-form-div {
        padding: 1.25rem;
    }
    
    .join-us-title {
        font-size: 1.75rem;
    }
    
    .join-us-description {
        font-size: 0.9rem;
    }
    
    .account-text h5 {
        font-size: 0.85rem;
    }
    
    .account-text p {
        font-size: 0.75rem;
    }
    
    .auth-nav-text {
        text-align: right;
        font-size: 0.8rem;
    }
    
    a.auth-nav-link,
    a.auth-nav-link:visited,
    NavLink.auth-nav-link,
    NavLink.auth-nav-link:visited,
    .auth-nav-link,
    .auth-nav-link:visited {
        color: #0D5257;
        font-size: 0.8rem;
    }
    
    a.auth-nav-link:hover,
    a.auth-nav-link:active,
    a.auth-nav-link:focus,
    NavLink.auth-nav-link:hover,
    NavLink.auth-nav-link:active,
    NavLink.auth-nav-link:focus,
    .auth-nav-link:hover,
    .auth-nav-link:active,
    .auth-nav-link:focus {
        color: #087990;
    }
    
    .registration-heading {
        font-size: 1.5rem;
    }
    
    .registration-subheading {
        font-size: 0.9rem;
    }
}

