/* AUTH MODULE STYLES */

.settings-field-hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Social Auth Buttons */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #FFFFFF;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-social:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider::before {
    margin-right: 10px;
}

.auth-divider::after {
    margin-left: 10px;
}

/* Auth Progressive Modal Styles */
.auth-register-modal {
    width: 440px;
    max-width: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    animation: authModalFadeScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 104;
}

@keyframes authModalFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    border-bottom: none;
}

.auth-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0;
}

.auth-modal-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal-body {
    padding: 0 24px 24px 24px;
}

.auth-modal-back,
.auth-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    position: absolute;
    top: 14px;
}

.auth-modal-back {
    left: 14px;
}

.auth-modal-close {
    right: 14px;
}

.auth-modal-back:hover,
.auth-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.auth-steps-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.auth-steps-container {
    width: 100%;
}

#authRegSteps .auth-step {
    /* Registration steps are switched by JS instead of translating a 300%-wide
       strip. Percentage transforms on that strip could offset the handle page
       at browser zoom levels and clip its left edge. */
    width: 100% !important;
    min-width: 0;
}

#authRegSteps .form-input {
    box-sizing: border-box;
}

.auth-step {
    width: 33.333333%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-prefix {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-input-with-prefix {
    padding-left: 36px;
}

.auth-btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    justify-content: center;
    letter-spacing: 0.2px;
    transition: transform 0.1s, background-color 0.2s;
}

.auth-btn-primary:active {
    transform: translateY(1px);
}

.auth-btn-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn-pwd-toggle:hover svg {
    stroke: #0f172a;
}

.auth-error-msg {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 12px;
    display: none;
}

.auth-form-actions {
    margin-top: 20px;
}

.auth-footer-link {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 16px;
}

.auth-link {
    color: #0f172a;
    font-weight: 500;
    text-decoration: underline;
}

.auth-link:hover {
    color: var(--primary);
}

.auth-text-center {
    text-align: center;
}

.auth-input-lg {
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 600;
}

.auth-help-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.auth-onboarding-handle-rules,
.auth-onboarding-handle-lock {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.auth-onboarding-handle-lock {
    margin-top: 4px;
    font-weight: 600;
}

.auth-onboarding-name-info {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.auth-text-bold {
    font-weight: 600;
    color: #0f172a;
}

.auth-country-hint {
    display: none;
    font-size: 11px;
    color: #94A3B8;
    margin-top: 6px;
}

.auth-country-search-wrap {
    position: relative;
}

.auth-country-search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.auth-country-search-wrap .form-input {
    padding-left: 41px;
}

.auth-country-results {
    margin-top: 10px;
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.auth-country-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.auth-country-result:last-child {
    border-bottom: 0;
}

.auth-country-result:hover,
.auth-country-result:focus-visible {
    background: #f8fafc;
    outline: none;
}

.auth-country-result.is-selected {
    background: #eff8ff;
    color: #0284c7;
    font-weight: 600;
}

.auth-country-result-code {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.auth-country-empty {
    margin: 0;
    padding: 18px 13px;
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
}

.auth-field-stack-gap {
    margin-top: 14px;
}

.auth-signup-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 20px;
}

.auth-registration-cancel {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.auth-onboarding-head {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-onboarding-intro {
    color: #64748b;
    margin: 0 0 20px;
    font-size: 14px;
    text-align: center;
}

.auth-signup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.auth-signup-dots span.is-complete,
.auth-signup-dots span.is-current {
    background: var(--primary);
}

.auth-signup-dots span.is-current {
    transform: scale(1.25);
}

.auth-wizard-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-wizard-actions .btn {
    flex: 1;
    justify-content: center;
}

.auth-danger-zone {
    margin-top: 40px;
    border: 1px solid #fecaca;
    background: #fff7f7;
    border-radius: 10px;
    padding: 16px;
}

.auth-danger-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #991b1b;
}

.auth-danger-copy {
    font-size: 13px;
    color: #7f1d1d;
    margin: 0 0 14px;
}

.auth-danger-actions {
    display: flex;
    justify-content: flex-end;
}

.auth-btn-danger {
    background: #dc2626;
    color: #fff;
}
