/* استایل های صفحه ورود/ثبت نام */

.auth-page {
    padding: 80px 0;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

/* بخش تصویر تزئینی */
.auth-illustration {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.illustration-content {
    text-align: center;
    max-width: 400px;
}

.security-icon {
    font-size: 50px;
    color: #0066CC;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.illustration-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a1a35;
}

.illustration-content p {
    color: #666;
    margin-bottom: 30px;
}

.ticket-illustration {
    position: relative;
    height: 200px;
    width: 100%;
    perspective: 1000px;
}

.ticket {
    position: absolute;
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #0066CC 0%, #00AA55 100%);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotateY(0) translateZ(0);
    transform-style: preserve-3d;
    z-index: 3;
    transition: all 0.5s ease;
}

.ticket-inner {
    width: 100%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.ticket-header {
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.ticket-header span {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.ticket-body {
    display: flex;
    flex: 1;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 6px;
    margin-left: 15px;
    position: relative;
}

.qr-placeholder:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: repeating-linear-gradient(
        to right,
        #ddd 0,
        #ddd 2px,
        transparent 2px,
        transparent 4px
    ),
    repeating-linear-gradient(
        to bottom,
        #ddd 0,
        #ddd 2px,
        transparent 2px,
        transparent 4px
    );
}

.ticket-details {
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.ticket-back, .ticket-back-2 {
    background: linear-gradient(135deg, #0055AA 0%, #009944 100%);
    z-index: 2;
    top: 15px;
    transform: translateX(-50%) rotateY(-2deg) translateZ(-10px);
}

.ticket-back-2 {
    background: linear-gradient(135deg, #004488 0%, #008833 100%);
    z-index: 1;
    top: 30px;
    transform: translateX(-50%) rotateY(-4deg) translateZ(-20px);
}

.ticket-illustration:hover .ticket {
    transform: translateX(-50%) rotateY(10deg) translateZ(20px);
}

.ticket-illustration:hover .ticket-back {
    transform: translateX(-50%) rotateY(5deg) translateZ(0);
}

.ticket-illustration:hover .ticket-back-2 {
    transform: translateX(-50%) rotateY(0deg) translateZ(-10px);
}

/* بخش فرم ها */
.auth-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    position: relative;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: #0066CC;
}

.tab-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: #0066CC;
    transition: transform 0.3s ease;
}

.auth-forms {
    position: relative;
    overflow: hidden;
}

.auth-form {
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.auth-form.active {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 4px 0 0 4px;
    color: #666;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 0 4px 4px 0;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'IRANSans', sans-serif;
}

.form-control:focus {
    border-color: #0066CC;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    font-size: 14px;
    color: #dc3545;
}

.form-control.is-invalid + .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-left: 10px;
}

.form-check-label {
    margin-bottom: 0;
    color: #666;
}

.forgot-password {
    color: #0066CC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #004e9e;
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0066CC;
    border-color: #0066CC;
    color: white;
}

.btn-primary:hover {
    background-color: #0055aa;
    border-color: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: #ced4da;
    color: #666;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

.toggle-password {
    border-radius: 0 4px 4px 0;
    border-right: none;
}

/* بخش ورود با شبکه های اجتماعی */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    position: relative;
    color: #666;
    margin-bottom: 20px;
}

.social-login p:before,
.social-login p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #ddd;
}

.social-login p:before {
    right: 0;
}

.social-login p:after {
    left: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-social i {
    margin-left: 10px;
}

.btn-google {
    background-color: #DB4437;
    border-color: #DB4437;
    color: white;
}

.btn-google:hover {
    background-color: #c53b2e;
    box-shadow: 0 5px 15px rgba(219, 68, 55, 0.3);
}

.btn-facebook {
    background-color: #4267B2;
    border-color: #4267B2;
    color: white;
}

.btn-facebook:hover {
    background-color: #385899;
    box-shadow: 0 5px 15px rgba(66, 103, 178, 0.3);
}

/* نشانگر قدرت رمز عبور */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-progress {
    height: 100%;
    width: 0;
    background-color: #dc3545;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

/* بخش دمو */
.demo-account {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.demo-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.demo-header i {
    color: #0066CC;
    font-size: 18px;
    margin-left: 10px;
}

.demo-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.demo-body {
    padding: 15px;
}

.demo-body p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.demo-credentials {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.credential {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.credential:last-child {
    margin-bottom: 0;
}

.credential-label {
    color: #666;
    font-weight: 500;
}

.credential-value {
    font-family: monospace;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid #0066CC;
    color: #0066CC;
}

.btn-outline-primary:hover {
    background-color: #0066CC;
    color: white;
}

/* مودال لودینگ */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-modal.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0066CC;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .auth-page {
        padding: 40px 0;
    }
    
    .auth-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .auth-tab {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        margin-bottom: 10px;
    }
}