/* Phase 18: OTP Authentication CSS - Distinct from other UIs */

.auth-otp-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-otp-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-otp-card h1 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-otp-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-otp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-otp-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-otp-field label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.auth-otp-field input {
    padding: 0.875rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    direction: ltr;
    text-align: left;
}

.auth-otp-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-otp-field input::placeholder {
    color: #adb5bd;
}

.auth-otp-button {
    padding: 0.875rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.auth-otp-button:hover:not(:disabled) {
    background: #0056b3;
}

.auth-otp-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-otp-countdown {
    margin: 4px 0 16px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a8a;
    background: #eff6ff;
    font-size: 0.9rem;
    text-align: center;
}

.auth-otp-countdown strong {
    direction: ltr;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.auth-otp-countdown--expired {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.auth-otp-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-otp-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-otp-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-otp-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-otp-links a:hover {
    text-decoration: underline;
}

/* RTL support */
[dir="rtl"] .auth-otp-field input {
    direction: ltr;
    text-align: left;
}

