.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 16px;
    background-color: #edf2f8;
    color: #14243b;
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    display: grid;
    flex: 1 0 auto;
    place-items: center;
    padding: 32px 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(22px, 6vw, 36px);
    background-color: #fff;
    border: 1px solid #dce4ee;
    border-top: 4px solid #078ab9;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(22, 47, 80, .10);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 20px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.auth-brand img {
    width: 118px;
    height: 40px;
    object-fit: cover;
}

.auth-header h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.auth-header p {
    margin: 8px 0 0;
    color: #52647a;
    font-size: 15px;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-field .form-control {
    height: 48px;
    padding: 10px 12px;
    border-color: #8a9bb0;
    border-radius: 8px;
    box-shadow: none;
    color: #14243b;
    font-size: 16px;
}

.auth-field .form-control:focus {
    border-color: #1457a3;
    box-shadow: none;
}

.auth-field .form-control:focus,
.auth-button:focus,
.auth-secondary:focus {
    outline: 2px solid #1457a3;
    outline-offset: 2px;
}

.auth-page .field-validation-valid,
.auth-page .validation-summary-valid {
    display: none;
}

.auth-page .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #a1271c;
}

.auth-page .auth-form-error.field-validation-error,
.auth-page .validation-summary-errors {
    margin: 0 0 16px;
    padding: 10px 12px;
    background-color: #fff1ef;
    border-radius: 8px;
    color: #a1271c;
}

.auth-page .validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.auth-field .form-control.input-validation-error {
    border-color: #a1271c;
}

.auth-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background-color: #1457a3;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.auth-button:hover,
.auth-button:focus {
    background-color: #104681;
    color: #fff;
    text-decoration: none;
}

.auth-secondary {
    display: block;
    min-height: 44px;
    margin: 8px auto -8px;
    padding: 8px 12px;
    background: none;
    border: 0;
    border-radius: 6px;
    color: #1457a3;
    font-weight: 600;
}

.auth-secondary:hover {
    text-decoration: underline;
}

.auth-qr {
    display: block;
    width: 192px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.auth-reset-dialog {
    max-width: 440px;
}

.auth-page .modal-content {
    border-radius: 16px;
}

.auth-help {
    margin-bottom: 16px;
    color: #52647a;
}

.auth-guide {
    max-height: 68vh;
    overflow-y: auto;
}

.auth-guide ol {
    display: grid;
    gap: 16px;
    padding-left: 20px;
}

.auth-guide-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.auth-guide-images img {
    align-self: flex-start;
    max-width: min(100%, 240px);
    height: auto;
    border: 1px solid #dce4ee;
    border-radius: 8px;
}

.auth-footer {
    padding-bottom: 24px;
    color: #52647a;
    font-size: 13px;
    text-align: center;
}
