* {
    box-sizing: border-box;
}

.auth-app {

    direction: rtl;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-family: inherit;
    overflow-x: hidden;
}

.auth-shell {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 24px;

}

.auth-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
}

.auth-subtitle {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.9;
}

.auth-form {
    display: block;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.auth-input {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    padding: 0 15px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    outline: none;
}

.auth-input:focus {
    border-color: #ea1666;
    box-shadow: 0 0 0 5px rgba(234, 22, 102, 0.12);
}

.auth-input-ltr {
    direction: ltr;
    text-align: left;
}

.auth-actions {
    padding-top: 4px;
}

.auth-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 18px;
    background: #ea1666;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(234, 22, 102, 0.24);
}

.auth-button:hover {
    background: #d4145d;
}

.auth-button:active {
    transform: translateY(1px);
}

.auth-link {
    display: inline-flex;
    margin-top: 16px;
    color: #ea1666;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.auth-note {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.9;
}

.auth-mobile {
    direction: ltr;
    display: inline-block;
    color: #111827;
    font-weight: 900;
}

@media (max-width: 480px) {
    .auth-app {
        align-items: flex-start;
        padding: 18px 14px;
        background: #ffffff;
    }

    .auth-shell {
        max-width: none;
    }

    .auth-card {
        margin-top: 0px;
        border-radius: 24px;
        padding: 22px 18px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-input,
    .auth-button {
        height: 50px;
        border-radius: 16px;
    }

    .auth-mobile {
        display: inline-block;
        margin-top: 6px;
        font-size: 15px;
        font-weight: 800;
    }
}


.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 44px;
    padding-left: 48px;
}

.auth-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.auth-password-toggle img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-resend-form {
    margin-top: 16px;
}

.auth-resend-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ea1666;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    padding: 10px;
}

.auth-resend-button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}


.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 44px;
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.65;
    pointer-events: none;
}

.auth-password-wrap .auth-input {
    padding-right: 44px;
    padding-left: 48px;
}