*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f7f9;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    /* Manual layout control: left brand area is 70%, right form area is 30%. */
    grid-template-columns: 7fr 3fr;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101820;
    text-align: center;
    /* Manual spacing control: increase/decrease empty space around the logo. */
    padding: 48px;
}

.auth-brand img {
    display: block;
    width: min(120px, 72%);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-login-page .auth-brand img {
    /* Manual logo control: increase/decrease this value for desktop logo size. */
    width: min(350px, 72%);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Manual spacing control: first value is top/bottom, second is left/right. */
    padding: 48px 24px;
    background: #fff;
}

.auth-card {
    width: 100%;
    /* Manual form width control: increase/decrease the login form width. */
    max-width: 380px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.auth-hint {
    margin: 0 0 28px;
    color: #5f6773;
    font-size: 15px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ccd2da;
    border-radius: 6px;
    font-size: 16px;
}

.auth-field input:focus {
    border-color: #007b8a;
    outline: 3px solid rgba(0, 123, 138, 0.16);
}

.auth-identifier-row {
    display: flex;
    align-items: stretch;
}

.auth-country-code {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #ccd2da;
    border-right: 0;
    border-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #f6f7f9;
}

.auth-country-code[hidden] {
    display: none;
}

.auth-country-code__prefix {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    padding: 10px 14px;
    color: #101820;
    font-size: 16px;
}



.auth-identifier-row input {
    min-width: 0;
    flex: 1;
}

.auth-country-code:not([hidden]) + input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.auth-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-button {
    width: 100%;
    /* Manual button height control: increase/decrease button height. */
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: #8a7500;
    color: #fff;
    font-size: 16px;
    /* Manual text boldness control: 400 normal, 500 medium, 600 semi-bold. */
    font-weight: 500;
    cursor: pointer;
}

.auth-button.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.75s linear infinite;
}

.auth-button:disabled,
.auth-button.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.auth-button:hover {
    background: #8a7500;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-dev-otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #f1d98a;
    border-radius: 6px;
    background: #fff8db;
    color: #5f4b00;
    font-size: 14px;
}

.auth-dev-otp strong {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 18px;
    letter-spacing: 2px;
}

.auth-countdown {
    margin: 0 0 18px;
    color: #5f6773;
    font-size: 14px;
}

.auth-countdown span {
    font-weight: 700;
    color: #101820;
}

.auth-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.auth-actions a,
.auth-actions button {
    color: #007b8a;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.auth-actions button:disabled {
    color: #9aa3ad;
    cursor: default;
}

.auth-actions button.is-loading {
    color: #5f6773;
    cursor: wait;
}

.errorlist,
.auth-error {
    margin: 8px 0 16px;
    padding: 0;
    list-style: none;
    color: #b42318;
    font-size: 14px;
}

.auth-otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px;
}
