:root {
    --primary: #0c2e60;
    --primary-light: #144b8e;
    --secondary: #ffc107;
    --secondary-hover: #e0a800;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    flex: 1;
    padding: 40px 0;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(12, 46, 96, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-card::before {
    content: '';
    position: absolute;
    width: 1200px;
    height: 1200px;
    background: linear-gradient(135deg, rgba(20, 75, 142, 0.03) 0%, rgba(12, 46, 96, 0.06) 100%);
    border-radius: 50%;
    top: -800px;
    right: -600px;
    z-index: -1;
}

.auth-card::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(255, 193, 7, 0.06) 100%);
    border-radius: 50%;
    bottom: -500px;
    left: -400px;
    z-index: -1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .auth-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-header .auth-logo i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-left: 10px;
}

.auth-header .auth-logo span:first-of-type {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.auth-header .auth-logo span:last-of-type {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.auth-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(12, 46, 96, 0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(12, 46, 96, 0.15);
}

.input-group-text {
    background-color: rgba(12, 46, 96, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    color: var(--primary);
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    color: #6c757d;
    z-index: 10;
}

.form-control-with-icon {
    padding-right: 40px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 46, 96, 0.2);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 46, 96, 0.2);
}

.btn-social {
    height: 45px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-social i {
    font-size: 1.2rem;
    margin-left: 10px;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google {
    background-color: #DB4437;
    border-color: #DB4437;
    color: #fff;
}

.btn-google:hover {
    background-color: #c53929;
    border-color: #c53929;
    color: #fff;
}

.divider-text {
    position: relative;
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 25px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ced4da;
}

.divider-text::before {
    margin-left: 15px;
}

.divider-text::after {
    margin-right: 15px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-help {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 20px;
}

.auth-help a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-help a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.reset-password-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.reset-password-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.decoration-bus {
    position: absolute;
    font-size: 8rem;
    color: rgba(12, 46, 96, 0.03);
    z-index: -1;
}

.decoration-bus-1 {
    top: 40px;
    left: -60px;
    transform: rotate(-20deg);
}

.decoration-bus-2 {
    bottom: 40px;
    right: -60px;
    transform: rotate(20deg);
}

@media (max-width: 767.98px) {
    .auth-card {
        margin: 0 15px;
    }
}















.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.custom-modal.show {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    background: white;
    margin: auto;
    padding: 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.7) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.custom-modal.show .custom-modal-content {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
    position: relative;
    overflow: hidden;
}

.custom-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.custom-modal-body {
    text-align: center;
    padding: 20px 0;
}

.custom-modal-body i {
    font-size: 4rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 1s ease infinite;
}

.custom-modal-footer {
    text-align: center;
    padding-top: 20px;
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

@keyframes bounce {

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

    50% {
        transform: translateY(-10px);
    }
}

.custom-modal-body p {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

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

/* Email Verification Modal Styles */
.email-verification-modal .custom-modal-content {
    max-width: 450px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(40, 167, 69, 0.1);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15);
}

.email-verification-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%) !important;
    position: relative;
    overflow: hidden;
}

.email-verification-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: headerShimmer 3s infinite;
}

.verification-icon {
    animation: verificationIconPulse 2s ease-in-out infinite;
}

.email-verification-body {
    padding: 30px 20px;
}

.verification-animation {
    margin-bottom: 20px;
}

.verification-main-icon {
    font-size: 5rem !important;
    background: linear-gradient(135deg, #28a745, #20c997, #17a2b8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: mainIconBounce 1.5s ease-in-out infinite;
    display: inline-block;
}

.verification-message {
    font-size: 1.2rem !important;
    color: #2c3e50 !important;
    font-weight: 600;
    margin: 20px 0 !important;
    line-height: 1.6;
}

.verification-celebration {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.celebration-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    display: inline-block;
    animation: celebrationPulse 2s ease-in-out infinite;
}

.verification-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%) !important;
    border: none !important;
    padding: 12px 40px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.verification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.verification-btn:hover::before {
    left: 100%;
}

.verification-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4) !important;
}

/* Animations */
@keyframes headerShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes verificationIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes mainIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    10% {
        transform: translateY(-10px) rotate(-5deg);
    }
    30% {
        transform: translateY(-15px) rotate(5deg);
    }
    40% {
        transform: translateY(-5px) rotate(-2deg);
    }
    60% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .email-verification-modal .custom-modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .verification-main-icon {
        font-size: 4rem !important;
    }
    
    .verification-message {
        font-size: 1.1rem !important;
    }
    
    .celebration-text {
        font-size: 1rem;
    }
    
    .verification-btn {
        padding: 10px 30px !important;
        font-size: 1rem !important;
    }
}
