/************************************/
/*********** استایل لاگین ********/
/************************************/
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-blue: #e8f4fc;
    --gradient: linear-gradient(135deg, #3498db 0%, #1abc9c 100%);
}

body {
    /* background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.9)),
        url('https://images.unsplash.com/photo-1516549655669-df6654e435de?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

/* افکت شیشه‌ای (Glassmorphism) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.login-box,
.register-box {
    width: 500px !important;
}

.login-box {
    animation: fadeInUp 0.8s ease-out;
    max-width: 500px !important;
    margin: 40px auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    /*margin-bottom: 40px;
    padding: 20px;*/
}

.logo-icon {
    background: var(--gradient);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    animation: pulse 2s infinite;
}

.logo-icon i {
    font-size: 36px;
    color: white;
}

.login-logo h1 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-logo p {
    color: #7f8c8d;
    font-size: 14px;
    opacity: 0.8;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.card-header p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-card-body {
    padding: 40px;
}

.input-group {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e3f2fd;
    background: #f8fdff;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background: white;
    transform: translateY(-2px);
}

.input-group-text {
    background: #f8fdff;
    border: none;
    color: var(--primary-color);
    padding: 0 20px;
    min-width: 50px;
    justify-content: center;
}

.form-control {
    border: none;
    padding: 15px;
    height: auto;
    background: transparent;
    font-size: 15px;
}

.form-control::placeholder {
    color: #95a5a6;
}

.form-control:focus {
    box-shadow: none;
    background: transparent;
}

.btn-login {
    background: var(--gradient);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(5px);
}

/* استایل چک باکس نمایش رمز */
.form-check {
    margin: 20px 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #555;
    cursor: pointer;
    user-select: none;
}

/* استایل OTP */
.otp-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.otp-step.show {
    display: block;
}

.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-icon {
    background: linear-gradient(135deg, #1abc9c 0%, #3498db 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.otp-inputs {
    direction: ltr;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e0f7fa;
    border-radius: 12px;
    background: #f8fdff;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.otp-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
    background: white;
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: var(--primary-color);
    background: #e8f4fc;
}

.mobile-number {
    background: #f8fdff;
    padding: 12px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #e3f2fd;
}

.mobile-number span {
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.resend-otp {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #f8fdff;
    border-radius: 10px;
    border: 1px dashed #b3e5fc;
}

.resend-otp a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.resend-otp a:hover {
    color: var(--secondary-color);
    gap: 8px;
}

.resend-otp a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.timer {
    color: #e74c3c;
    font-weight: 600;
    font-family: monospace;
    font-size: 16px;
    margin-right: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-buttons .btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #7f8c8d;
    font-size: 13px;
}

.login-footer i {
    color: var(--accent-color);
    margin-left: 5px;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-box {
        margin: 20px auto;
        padding: 10px;
        max-width: 100%;
    }

    .login-card-body {
        padding: 25px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .otp-inputs {
        gap: 5px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }
}
