.amoot-auth {
    --amoot-primary: var(--amoot-brand, #ef4056);
    --amoot-primary-hover: var(--amoot-brand-hover, #d9364d);
    --amoot-primary-soft: var(--amoot-brand-soft, #fff1f3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: inherit;
}

.amoot-auth .amoot-card {
    width: 100%;
    max-width: 400px;
    padding: 30px 28px 26px;
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
}

.amoot-auth .amoot-brand-logo {
    display: var(--amoot-brand-logo-display, none);
    width: 170px;
    height: 48px;
    margin: 0 auto 34px;
    background-image: var(--amoot-brand-logo, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.amoot-auth .amoot-step {
    display: none;
}

.amoot-auth .amoot-step.active {
    display: block;
}

.amoot-auth .amoot-step h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 800;
    text-align: right;
}

.amoot-auth .amoot-step-description {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
}

.amoot-auth .amoot-step label {
    display: block;
    margin: 0 2px 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

.amoot-auth .amoot-step input {
    width: 100%;
    height: 48px;
    margin: 0 0 16px;
    padding: 0 14px;
    color: #111827;
    background: #fff;
    border: 1px solid #c8cdd4;
    border-radius: 8px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.amoot-auth .amoot-step input:focus {
    border-color: var(--amoot-primary);
    box-shadow: 0 0 0 2px var(--amoot-primary-soft);
}

.amoot-auth .amoot-step > button:not(.amoot-resend-btn) {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #fff;
    background: var(--amoot-primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, opacity .18s ease;
}

.amoot-auth .amoot-step > button:not(.amoot-resend-btn):hover:not(:disabled) {
    background: var(--amoot-primary-hover);
}

.amoot-auth button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.amoot-auth .btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgb(255 255 255 / 35%);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: amoot-spin .7s linear infinite;
}

.amoot-auth button.loading .btn-text { visibility: hidden; }
.amoot-auth button.loading .btn-loader { display: block; }

@keyframes amoot-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.amoot-auth .amoot-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -2px 0 22px;
    padding: 0;
    background: transparent;
    border: 0;
}

.amoot-auth #amoot_timer {
    display: none;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 500;
}

.amoot-auth .amoot-resend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--amoot-primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.amoot-auth .amoot-resend-btn:hover {
    color: var(--amoot-primary-hover);
    background: transparent;
}

.amoot-auth #amoot_msg {
    display: none;
    margin-top: 14px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    text-align: right;
    line-height: 1.7;
    font-size: 12px;
}

.amoot-auth #amoot_msg.msg-error {
    display: block;
    color: #991b1b;
    background: #fff7f7;
    border-color: #fecaca;
}

.amoot-auth #amoot_msg.msg-sms,
.amoot-auth #amoot_msg.msg-bale,
.amoot-auth #amoot_msg.msg-voice {
    display: block;
    color: #166534;
    background: #f6fff8;
    border-color: #bbf7d0;
}

.amoot-auth #amoot_name_box[hidden],
.amoot-auth .amoot-resend-btn[hidden] {
    display: none !important;
}

.amoot-auth-logged-in {
    max-width: 400px;
    margin: 20px auto;
    padding: 18px;
    color: #166534;
    background: #f6fff8;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .amoot-auth { padding: 8px; }
    .amoot-auth .amoot-card {
        max-width: none;
        padding: 24px 18px 22px;
        border-radius: 8px;
    }
    .amoot-auth .amoot-brand-logo {
        width: 145px;
        height: 42px;
        margin-bottom: 28px;
    }
}
