@font-face {
    font-family: 'Yekan';
    src: url('../fonts/Kalameh/KalamehWebFaNum-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    font-family: 'Yekan', Tahoma, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-header .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.login-body {
    padding: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating>.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    height: auto;
    font-size: 1rem;
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-floating>label {
    padding: 1rem 0.75rem;
}

.btn-primary {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
}

.otp-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.otp-section.show {
    display: block;
}

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

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

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.timer-badge.expired {
    background: #fff3cd;
    color: #856404;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--primary-color);
}

.phone-masked {
    direction: ltr;
    font-weight: 600;
    color: var(--primary-color);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.alert {
    border-radius: 12px;
    border: none;
}