/* MECHART email verification + inline validation */

.auth-field-error {
    display: block;
    margin: 0 2px;
    color: #fca5a5;
    font-size: 10px;
    line-height: 1.5;
}

.auth-field-error[hidden] {
    display: none !important;
}

.auth-field-help {
    display: block;
    margin: 0 2px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.auth-input-error {
    color: #fecaca !important;
}

.auth-input-wrap:has(.auth-input-error) {
    border-color: rgba(248, 113, 113, .72);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .09);
}

.auth-inline-message {
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 10px;
    background: rgba(59, 130, 246, .08);
    color: #bfdbfe;
    font-size: 10px;
    line-height: 1.55;
}

.auth-inline-message[hidden] {
    display: none !important;
}

.auth-inline-message[data-type="error"] {
    border-color: rgba(248, 113, 113, .22);
    background: rgba(239, 68, 68, .08);
    color: #fecaca;
}

.auth-inline-message[data-type="success"] {
    border-color: rgba(52, 211, 153, .22);
    background: rgba(16, 185, 129, .08);
    color: #a7f3d0;
}

.auth-code-input {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 13px;
    outline: none;
    background: rgba(15, 23, 42, .78);
    color: #f8fafc;
    font: inherit;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .42em;
    text-align: center;
    padding: 0 10px 0 calc(10px + .42em);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.auth-code-input:focus {
    border-color: rgba(96, 165, 250, .78);
    background: rgba(15, 23, 42, .98);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.auth-code-input-error {
    border-color: rgba(248, 113, 113, .72) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .09) !important;
}

.auth-verify-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.auth-resend {
    padding: 0;
    border: 0;
    background: transparent;
    color: #93c5fd;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.auth-resend:disabled {
    color: #526176;
    cursor: default;
}

.auth-resend-timer {
    min-width: 34px;
    color: #64748b;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.auth-primary:disabled {
    cursor: wait;
    opacity: .72;
    transform: none !important;
}

#verify-email-label {
    color: #c4b5fd;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .auth-code-input {
        font-size: 21px;
        letter-spacing: .32em;
        padding-left: calc(10px + .32em);
    }
}
