@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
    position: relative;
}

.input-group input {
    padding-right: 3rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.captcha-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    font-family: 'Vazirmatn', 'Courier New', monospace;
    letter-spacing: 3px;
    user-select: none;
}

.timer-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.timer-circle::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    z-index: -1;
}

.timer-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timer-text {
    color: #64748b;
    font-weight: 500;
    margin-top: 8px;
}

.verification-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark .glass-effect {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-600 {
    color: #94a3b8 !important;
}

.dark .border-gray-300 {
    border-color: #475569 !important;
}

.dark .bg-gray-200 {
    background-color: #475569 !important;
}

.dark input {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark input:focus {
    background-color: #475569;
}

.dark input::placeholder {
    color: #94a3b8;
}

.dark .input-icon {
    color: #94a3b8;
}

.dark .captcha-box {
    background: #334155;
    border-color: #475569;
}

.dark .timer-container {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.dark .timer-text {
    color: #94a3b8;
}

.dark .verification-input {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark .verification-input:focus {
    background-color: #475569;
}

.dark #messageBox .bg-white {
    background-color: #334155 !important;
}

.dark #messageBox .text-gray-800 {
    color: #e2e8f0 !important;
}

#themeToggle {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(30, 41, 59, 0.9);
}

#themeToggle:hover {
    background: rgba(30, 41, 59, 0.9);
}

.dark #themeToggle {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark #themeToggle:hover {
    background: rgba(255, 255, 255, 1);
}

:root:not(.dark) input,
:root:not(.dark) textarea,
:root:not(.dark) select {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

:root:not(.dark) input:focus,
:root:not(.dark) textarea:focus,
:root:not(.dark) select:focus {
    background-color: #ffffff;
    outline: none;
}

:root:not(.dark) input::placeholder,
:root:not(.dark) textarea::placeholder {
    color: #9ca3af;
}