:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #172b45;
    background: #f3f6fa;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-logo {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.auth-layout,
.auth-content {
    display: contents;
}

.auth-photo {
    display: none;
}

.back-link {
    width: min(100%, 460px);
    margin: 0 0 18px;
    color: #084d96;
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus {
    text-decoration: underline;
}

.auth-card {
    width: min(100%, 460px);
    padding: 40px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(23, 43, 69, 0.1);
}

.auth-page.is-attachment-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #1a0907;
}

.auth-page.is-attachment-auth .auth-layout {
    display: grid;
    width: min(100%, 1360px);
    min-height: min(680px, calc(100vh - 36px));
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: 14px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
}

.auth-page.is-attachment-auth .auth-photo {
    display: block;
    min-height: 560px;
    overflow: hidden;
    border-radius: 10px;
    background: #e8edf2;
}

.auth-page.is-attachment-auth .auth-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center;
}

.auth-page.is-attachment-auth .auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px clamp(18px, 5vw, 72px);
}

.auth-page.is-attachment-auth .back-link {
    width: min(100%, 520px);
    margin-bottom: 12px;
}

.auth-page.is-attachment-auth .auth-card {
    width: min(100%, 520px);
    padding: 30px clamp(22px, 4vw, 48px);
    border: 0;
    box-shadow: none;
}

.auth-page.is-attachment-auth .submit-button {
    background: #f47f39;
}

.auth-page.is-attachment-auth .submit-button:hover,
.auth-page.is-attachment-auth .submit-button:focus {
    background: #dc692b;
}

.auth-page.is-attachment-auth .eyebrow {
    color: #e87939;
    text-align: center;
}

.auth-page.is-attachment-auth .auth-card h1,
.auth-page.is-attachment-auth .auth-intro {
    text-align: center;
}

.auth-page.is-attachment-auth .auth-footer {
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: #084d96;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

h1 {
    margin: 0;
    font-size: clamp(25px, 5vw, 32px);
    line-height: 1.2;
}

.auth-intro {
    margin: 12px 0 24px;
    color: #5c6e82;
    font-size: 15px;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-height: 48px;
    margin: 0 0 18px;
    padding: 0 14px;
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    background: #ffffff;
    color: #172b45;
    font: inherit;
    font-size: 15px;
}

input:focus,
select:focus {
    border-color: #084d96;
    outline: 3px solid rgba(8, 77, 150, 0.15);
}

.password-visibility-toggle {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: -5px 0 16px;
    color: #43586d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.password-visibility-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #084d96;
}

.submit-button {
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 6px;
    background: #084d96;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.submit-button:hover,
.submit-button:focus {
    background: #063d77;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.confirmation-button {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #18864b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.confirmation-button:hover,
.confirmation-button:focus {
    background: #126b3b;
}

.confirmation-button:focus {
    outline: 3px solid rgba(24, 134, 75, 0.25);
    outline-offset: 2px;
}

.auth-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: #315b83;
    font-size: 14px;
    line-height: 1.5;
}

.auth-status.is-error {
    color: #b42318;
}

.auth-footer {
    margin: 18px 0 0;
    color: #718196;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }
}

@media (max-width: 760px) {
    .auth-page.is-attachment-auth {
        padding: 12px;
    }

    .auth-page.is-attachment-auth .auth-layout {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .auth-page.is-attachment-auth .auth-photo,
    .auth-page.is-attachment-auth .auth-photo img {
        min-height: 220px;
        max-height: 34vh;
    }

    .auth-page.is-attachment-auth .auth-content {
        padding: 22px 10px;
    }

    .auth-page.is-attachment-auth .auth-card {
        padding: 24px 16px;
    }
}
