/* ==================== Reset & Base ==================== */
.asooone-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.asooone-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* ==================== Decorative Background ==================== */
.asooone-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -80px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(10deg); }
}

/* ==================== Card ==================== */
.asooone-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==================== Header ==================== */
.asooone-header {
    text-align: center;
    margin-bottom: 35px;
}

.asooone-icon-box {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

.asooone-icon-box svg {
    width: 35px;
    height: 35px;
    color: white;
}

.asooone-icon-box.success {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.asooone-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 8px;
}

.asooone-header p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    line-height: 1.8;
}

.asooone-header strong {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 3px 10px;
    border-radius: 8px;
    direction: ltr;
    display: inline-block;
}

/* ==================== Form Fields ==================== */
.asooone-field {
    margin-bottom: 22px;
}

.asooone-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.asooone-field label small {
    font-weight: 400;
    color: #94A3B8;
}

.asooone-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
    color: #1E293B;
    transition: all 0.3s ease;
}

.asooone-input:focus {
    outline: none;
    border-color: #667eea;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.asooone-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.asooone-error {
    color: #EF4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

/* ==================== Buttons ==================== */
.asooone-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.asooone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.asooone-btn:active {
    transform: translateY(0);
}

.asooone-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.asooone-btn.success {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.asooone-btn .btn-spinner {
    display: inline-block;
}

.asooone-btn.loading .btn-text {
    display: none;
}

.asooone-btn.loading .btn-spinner {
    display: inline-block !important;
}

.spinner {
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    stroke-width: 4;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==================== Code Inputs ==================== */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-digit {
    width: 48px;
    height: 58px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
    color: #1E293B;
    transition: all 0.2s;
    font-family: inherit;
}

.code-digit:focus {
    outline: none;
    border-color: #667eea;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.08);
}

.code-digit.filled {
    border-color: #10B981;
    background: #ECFDF5;
}

/* ==================== Timer ==================== */
.timer-section {
    text-align: center;
    margin: 20px 0;
}

.timer-box {
    display: inline-block;
    background: #F1F5F9;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
}

.timer-box span {
    color: #667eea;
    font-weight: 800;
    direction: ltr;
    display: inline-block;
}

/* ==================== Link Buttons ==================== */
.btn-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: 2px dashed #E2E8F0;
    padding: 10px;
    border-radius: 12px;
    color: #667eea;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 12px;
}

.btn-link:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* ==================== Terms ==================== */
.asooone-terms {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 20px;
}

/* ==================== Alert ==================== */
.asooone-alert {
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.asooone-alert.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.asooone-alert.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    .asooone-card {
        padding: 30px 20px;
        border-radius: 22px;
    }
    
    .asooone-header h2 {
        font-size: 20px;
    }
    
    .code-digit {
        width: 42px;
        height: 52px;
        font-size: 18px;
    }
    
    .code-inputs {
        gap: 6px;
    }
}