/* General Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    min-height: 100vh;
}

/* Navbar Styles */
.top-contact-bar {
    background-color: #0c2e60;
    font-size: 0.9rem;
}

.gradient-header {
    background: linear-gradient(to right, #0c2e60, #1a4c94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-hover-effect {
    position: relative;
    transition: all 0.3s ease;
}

.nav-hover-effect:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-hover-effect:hover:before {
    width: 100%;
}

/* Logo Animation */
.logo-animated {
    transition: transform 0.3s ease;
}

.logo-animated:hover {
    transform: scale(1.05);
}

/* Auth Card Styles */
.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
}

.auth-header {
    background: linear-gradient(135deg, #0c2e60 0%, #1a4c94 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: 100%;
}

.auth-header i {
    font-size: 3rem;
    color: #ffc107;
    display: block;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
}

.card-body {
    padding: 2.5rem !important;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: #1a4c94;
    box-shadow: 0 0 0 4px rgba(26, 76, 148, 0.1);
    background-color: #ffffff;
}

.form-check {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: -1.75rem;
    border: 2px solid #cbd5e0;
}

[dir="rtl"] .form-check-input {
    margin-left: 0;
    margin-right: -1.75rem;
}

.form-check-input:checked {
    background-color: #1a4c94;
    border-color: #1a4c94;
}

.form-check-label {
    color: #4a5568;
    font-size: 0.95rem;
    padding-top: 0.125rem;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: none;
    display: flex;
    align-items: center;
}

.alert-info {
    background-color: rgba(26, 76, 148, 0.08);
    color: #1a4c94;
}

.alert i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0c2e60 0%, #1a4c94 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 76, 148, 0.2);
    background: linear-gradient(135deg, #1a4c94 0%, #0c2e60 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
}

/* Helper Links */
.helper-links {
    margin-top: 2rem;
}

.helper-links a {
    color: #1a4c94;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.helper-links a:hover {
    color: #0c2e60;
}

.helper-links i {
    transition: transform 0.3s ease;
}

.helper-links a:hover i {
    transform: translateX(-4px);
}

[dir="rtl"] .helper-links a:hover i {
    transform: translateX(4px);
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    color: #e53e3e;
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .auth-card {
        margin: 1rem;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-header i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 2rem 1.5rem !important;
    }
}

/* Input Group Styles */
.input-group > .form-control {
    border-radius: 12px;
}

[dir="rtl"] .input-group > .form-control {
    border-radius: 12px;
}

/* Focus States */
.form-control:focus-visible,
.btn:focus-visible,
.form-check-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 76, 148, 0.2);
}
