/**
 * Nafath Login & Verification Styles
 * RTL & Responsive Design
 */

.nafath-card-wrapper {
    max-width: 440px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f5;
    padding: 32px 28px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.nafath-card-wrapper * {
    box-sizing: border-box;
}

.nafath-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.nafath-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ea;
    color: #00875a;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.nafath-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
}

.nafath-subtitle {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.nafath-form-group {
    margin-bottom: 18px;
}

.nafath-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.nafath-form-group label .req {
    color: #e53e3e;
}

.nafath-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.nafath-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #cbd5e0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.nafath-input:focus {
    border-color: #00875a;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

.nafath-input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #a0aec0;
    pointer-events: none;
}

.nafath-error-box {
    background: #fff5f5;
    border-right: 4px solid #e53e3e;
    color: #c53030;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.nafath-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #00875a 0%, #006644 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nafath-btn-submit:hover {
    background: linear-gradient(135deg, #00734d 0%, #005237 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 135, 90, 0.3);
}

.nafath-btn-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Waiting Screen & Random Number Circle */
.nafath-waiting-screen {
    text-align: center;
    padding: 10px 0;
}

.nafath-instructions p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.nafath-random-badge-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.nafath-random-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00875a 0%, #004d34 100%);
    color: #ffffff;
    font-size: 46px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 135, 90, 0.35);
    animation: nafathPulse 2s infinite;
    letter-spacing: 2px;
}

@keyframes nafathPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 135, 90, 0.5);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(0, 135, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 135, 90, 0);
    }
}

.nafath-timer-box {
    margin: 16px 0;
}

.nafath-timer-bar {
    width: 100%;
    height: 6px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.nafath-timer-progress {
    width: 100%;
    height: 100%;
    background: #00875a;
    transition: width 1s linear;
}

.nafath-timer-text {
    font-size: 13px;
    color: #718096;
}

.nafath-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #2b6cb0;
    margin: 16px 0 20px 0;
}

.nafath-pulse-dot {
    width: 8px;
    height: 8px;
    background: #3182ce;
    border-radius: 50%;
    animation: nafathDotPulse 1.2s infinite ease-in-out;
}

@keyframes nafathDotPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.nafath-btn-cancel {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #718096;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.nafath-btn-cancel:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Success Screen */
.nafath-success-screen {
    text-align: center;
    padding: 20px 0;
}

.nafath-success-icon {
    width: 60px;
    height: 60px;
    background: #38a169;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.nafath-verified-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e6f4ea;
    color: #00875a;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #b7eb8f;
    vertical-align: middle;
}
