/**
 * Login / OTP card.
 */

.dt-auth {
    direction: rtl;
    text-align: right;
    max-width: 26rem;
    margin: 0 auto;
}

.dt-auth__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
}

.dt-auth__tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    background: #f3f4f6;
    border-radius: 999px;
}

.dt-auth__tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0.55rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dt-auth__tab.is-active {
    background: #fff;
    color: var(--main-color-one, #3a3b9c);
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.1);
}

.dt-auth__panel[hidden],
.dt-auth__step[hidden],
.dt-auth__alert[hidden] {
    display: none;
}

.dt-auth__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.dt-auth__hint {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #6b7280;
    text-align: center;
}

.dt-auth__field {
    margin-bottom: 1rem;
    flex: 1;
}

.dt-auth__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.dt-auth__optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8rem;
}

.dt-auth__row {
    display: flex;
    gap: 0.75rem;
}

.dt-auth__input {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dt-auth__input--ltr {
    direction: ltr;
    text-align: left;
}

.dt-auth__input--code {
    direction: ltr;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    padding-inline-start: calc(0.9rem + 0.45em);
}

.dt-auth__input:focus {
    outline: 0;
    border-color: var(--main-color-one, #3a3b9c);
    box-shadow: 0 0 0 3px rgba(58, 59, 156, 0.15);
}

.dt-auth__btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: var(--main-color-one, #3a3b9c);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dt-auth__btn:hover {
    opacity: 0.92;
}

.dt-auth__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dt-auth__btn.is-loading {
    pointer-events: none;
}

.dt-auth__links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.dt-auth__link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--main-color-one, #3a3b9c);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.dt-auth__link:disabled {
    color: #9ca3af;
    cursor: default;
}

.dt-auth__pwform .dt-auth__links {
    justify-content: center;
}

.dt-auth__check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.dt-auth__alert {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.7;
}

.dt-auth__alert.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.dt-auth__alert.is-ok {
    background: #f0fdf4;
    color: #15803d;
}

@media (max-width: 480px) {
    .dt-auth__card {
        padding: 1.15rem;
    }

    .dt-auth__row {
        flex-direction: column;
        gap: 0;
    }
}
