/* Zima SMS Login - Styles (RTL) */

.zima-login-body {
    margin: 0;
    padding: 0;
    font-family: inherit;
    background: #f0f2f5;
    direction: rtl;
    min-height: 100vh;
}

.zima-login-body .dina-site-header,
.zima-login-body .dina-navbar,
.zima-login-body .mobile-footer,
.zima-login-body footer,
.zima-login-body .dina-side-panel,
.zima-login-body .overlay-blur,
.zima-login-body .overlay3,
.zima-login-body #back-top,
.zima-login-body .di-socialbtn,
.zima-login-body .alert-app,
.zima-login-body .dina-sticky-add-cart {
    display: none !important;
}

.zima-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.zima-login-container {
    width: 100%;
    max-width: 420px;
}

.zima-login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.zima-login-logo img,
.zima-login-logo-img {
    max-height: 55px;
    width: auto;
}

.zima-logo-fallback-link {
    text-decoration: none;
}

.zima-logo-fallback {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
}

.zima-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.zima-login-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.zima-login-subtitle {
    font-size: 13px;
    color: #777;
    margin: 0 0 24px 0;
    line-height: 1.8;
}

.zima-form-group {
    margin-bottom: 18px;
    text-align: right;
}

.zima-phone-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f6f8;
    border: 2px solid #e4e6eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.zima-phone-input-wrapper:focus-within {
    border-color: #2563eb;
    background: #fff;
}

.zima-phone-prefix {
    padding: 14px 14px 14px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: #ebedf0;
    border-left: 1px solid #dde0e4;
    white-space: nowrap;
    direction: ltr;
}

.zima-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 14px;
    font-size: 17px;
    color: #1a1a2e;
    outline: none;
    text-align: left;
    direction: ltr;
    font-family: inherit;
    letter-spacing: 2px;
}

.zima-phone-input::placeholder {
    color: #bbb;
    font-size: 13px;
    letter-spacing: 0;
}

.zima-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.zima-otp-digit {
    width: 50px;
    height: 54px;
    border: 2px solid #e4e6eb;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    background: #f5f6f8;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.zima-otp-digit:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.zima-otp-digit.has-value {
    border-color: #2563eb;
    background: #fff;
}

.zima-input-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
    text-align: right;
}

.zima-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    font-family: inherit;
}

.zima-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.zima-btn-primary {
    background: #2563eb;
    color: #fff;
}

.zima-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.zima-btn-primary:disabled {
    background: #c4c9d4;
    cursor: not-allowed;
    opacity: 0.8;
}

.zima-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zima-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zima-spin 0.6s linear infinite;
}

@keyframes zima-spin {
    to { transform: rotate(360deg); }
}

.zima-resend-wrapper {
    margin-top: 18px;
    text-align: center;
}

.zima-resend-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    font-family: inherit;
}

.zima-resend-btn:hover:not(:disabled) {
    background: #eff6ff;
}

.zima-resend-btn:disabled {
    color: #b0b7c3;
    cursor: not-allowed;
}

.zima-back-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: 1px solid #e4e6eb;
    color: #777;
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
    font-family: inherit;
}

.zima-back-btn:hover {
    background: #f5f6f8;
    color: #444;
}

.zima-success-icon {
    margin: 0 auto 14px;
    animation: zima-scale-in 0.3s ease-out;
}

@keyframes zima-scale-in {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.zima-success-title {
    color: #16a34a;
}

.zima-login-footer {
    text-align: center;
    margin-top: 22px;
}

.zima-login-footer a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.zima-login-footer a:hover {
    color: #2563eb;
}

/* Mobile */
@media (max-width: 480px) {
    .zima-login-card {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .zima-otp-digit {
        width: 44px;
        height: 48px;
        font-size: 20px;
    }

    .zima-otp-inputs {
        gap: 7px;
    }

    .zima-login-title {
        font-size: 18px;
    }
}

/* admin bar adjustments */
.zima-login-body #wpadminbar {
    display: none !important;
}
.zima-login-body { padding-top: 0 !important; }
