/* Authentication Layout Styles */

/* Import shared visibility toggle styles */
@import './_visibility-toggle.css';

/* Root container - constrain to viewport */
.auth-root {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Main split container - holds left and right panels */
.auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Left panel - form content */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 2.5rem;
    overflow-y: auto;
    gap: 1rem;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    flex: 1;
}

.auth-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Auth utilities at bottom */
.auth-utilities {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.auth-utilities__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-utilities__back:hover {
    color: #031D3A;
}

.auth-utilities__lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #6B7280;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.auth-utilities__lang:hover {
    color: #031D3A;
}

.auth-utilities__flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Right panel - background image */
.login-bg-panel {
    display: none;
    width: 50%;
    height: 100%;
    /* First image (LoginBG), Second image (PolygonBG underneath) */
    background-size: auto 100%, cover;
    background-position: right center, right center;
    background-repeat: no-repeat, no-repeat;
    overflow: hidden;
    min-width: 500px;
}

/* Desktop layout - side by side */
@media (min-width: 992px) {
    .auth-container {
        flex-direction: row;
        overflow: hidden;
    }
    
    .auth-form-panel {
        width: 50%;
        height: 100%;
    }
    
    .login-bg-panel {
        display: block;
    }
}

/* ===== Login Form Styles ===== */

.login-form {
    width: 100%;
    max-width: 520px;
}

.login-form__heading {
    font-size: 2.54rem;
    font-weight: 700;
    color: #031D3A;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.login-form__description {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 3rem 0;
    line-height: 1.5;
}

.login-form__field {
    margin-bottom: 2rem;
}

.login-form__label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #031D3A;
    margin-bottom: 0.5rem;
}

.login-form__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.login-form__link {
    font-size: 1rem;
    color: #2F80ED;
    text-decoration: none;
    font-weight: 400;
}

.login-form__link:hover {
    text-decoration: underline;
}

.login-form__input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #031D3A;
    background-color: #F8F9FA;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.login-form__input::placeholder {
    color: #9CA3AF;
}

.login-form__input:focus {
    border-color: #2F80ED;
}

.login-form__input-hint {
    display: block;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Password wrapper and toggle styles now imported from _visibility-toggle.css */

.login-form__input--password {
    padding-right: 3rem; /* Ensure password input has room for toggle button */
}

.login-form__remember {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.login-form__checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
}

.login-form__remember-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.login-form__remember-text {
    font-size: 1rem;
    font-weight: 600;
    color: #031D3A;
}

.login-form__remember-warning {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.4;
}

.login-form__button {
    width: 100%;
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2B3F6B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-form__button:hover {
    background-color: #1e2d4d;
}

.login-form__button:active {
    background-color: #151f35;
}

.login-form__button .indicator-progress {
    display: none;
}

.login-form__button.loading .indicator-label {
    display: none;
}

.login-form__button.loading .indicator-progress {
    display: inline-block;
}

/* Login Footer */
.login-footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-footer__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.login-footer__text {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 400;
}

.login-footer__link {
    font-size: 0.9375rem;
    color: #2F80ED;
    text-decoration: none;
    font-weight: 600;
}

.login-footer__link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-form__heading {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .login-form__field {
        margin-bottom: 1.5rem;
    }
    
    .login-footer {
        margin-top: 3rem;
    }
}

/* ===== Confirmation Page Styles ===== */

.confirmation-back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    color: #25356F;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    max-width: 520px;
    width: 100%;
    transition: color 0.2s;
}

.confirmation-back:hover {
    color: #031D3A;
}

.confirmation-back svg {
    align-self: center;
    width: 20px;
    height: 20px;
}

.confirmation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 520px;
    margin: -4rem auto 0 auto;
}

.confirmation-image {
    width: 100%;
    max-width: 200px;
}

.confirmation-image img {
    width: 100%;
    height: auto;
    display: block;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.confirmation-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #031D3A;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.confirmation-text {
    font-size: 1.15rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

.confirmation-email {
    font-size: 1.2rem;
    color: #031D3A;
    margin: 0;
    line-height: 1.6;
}

.confirmation-email strong {
    font-weight: 600;
}

.confirmation-resend {
    font-size: 1.15rem;
    color: #6B7280;
    margin: 0.5rem 0 0 0;
}

.confirmation-link {
    color: #2F80ED;
    text-decoration: none;
    font-weight: 600;
}

.confirmation-link:hover {
    text-decoration: underline;
}

/* Responsive for confirmation page */
@media (max-width: 768px) {
    .confirmation-heading {
        font-size: 2rem;
    }
    
    .confirmation-container {
        gap: 2rem;
    }
    
    .confirmation-image {
        max-width: 200px;
    }
}
