﻿.btn-primary {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(185, 28, 28, 0.3);
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-primary.loading {
        pointer-events: none;
        opacity: 0.8;
    }

        .btn-primary.loading span {
            display: none;
        }

        .btn-primary.loading::after {
            content: '';
            width: 24px;
            height: 24px;
            border: 3px solid #fff;
            border-top: 3px solid transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            display: inline-block;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    direction: rtl;
}

.toast {
    min-width: 300px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideDown 0.5s ease forwards;
    margin-bottom: 10px;
}

    .toast.success {
        background: #16a34a;
    }

    .toast.error {
        background: #dc2626;
    }

    .toast.info {
        background: #2563eb;
    }

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.step-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .step-container.fade-out {
        opacity: 0;
        transform: translateX(30px);
        pointer-events: none;
    }

    .step-container.fade-in {
        opacity: 1;
        transform: translateX(0);
    }

.timer {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    display: inline-block;
}

.resend-btn {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s;
}

    .resend-btn:hover {
        opacity: 0.7;
    }

    .resend-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        text-decoration: none;
    }

.input-focus:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}
