﻿:root {
    --primary: #FFCC01;      /* زرد ایرانسل */
    --primary-dark: #E6B800; /* زرد تیره‌تر */
    --secondary: #1D1D1D;    /* مشکی ایرانسل */
    --accent: #FFCC01;       /* زرد برای تأکید */
    --light: #F5F5F5;        /* طوسی بسیار روشن */
    --dark: #1D1D1D;         /* مشکی */
    --white: #FFFFFF;
    --gray-light: #E0E0E0;
    --gray-medium: #A2A2A2;
    --text-light: #B8B8B8;
    --text-dark: #1D1D1D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1D1D1D, #2C2C2C);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 204, 1, 0.15);
    padding: 40px;
    width: 420px;
    max-width: 90%;
    transition: all 0.5s ease;
    min-height: auto;
    margin: 40px 0;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        transparent,
        rgba(255, 204, 1, 0.08)
    );
    transform: rotate(30deg);
    animation: animate 8s linear infinite;
    z-index: -1;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.logo p {
    color: var(--text-light);
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 300;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 1, 0.2);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 1, 0.25);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 204, 1, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
    font-size: 14px;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ===== Password Recovery ===== */
.password-recovery-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 29, 29, 0.95);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.recovery-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 204, 1, 0.15);
    padding: 40px;
    width: 420px;
    max-width: 90%;
    position: absolute;
    top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recovery-header {
    text-align: center;
    margin-bottom: 30px;
}

.recovery-header i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

.recovery-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.recovery-header p {
    color: var(--text-light);
    font-size: 14px;
}

.recovery-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.recovery-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.step.active {
    background: var(--primary);
    color: var(--secondary);
}

.step.completed {
    background: var(--primary-dark);
    color: var(--secondary);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.recovery-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.recovery-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 1, 0.2);
}

.recovery-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 1, 0.25);
}

.recovery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 204, 1, 0.35);
}

.recovery-btn:disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

.recovery-back {
    text-align: center;
    margin-top: 20px;
}

.recovery-back a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.recovery-back a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.verification-code-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.verification-code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.verification-code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 1, 0.2);
}

.countdown {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== Input Group with Toggle ===== */
.input-group .fa-lock {
    position: absolute;
    left: 15px;
    top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.input-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    left: auto;
}

.input-group .toggle-password:hover {
    color: var(--white);
}

/* ===== Autofill Fix ===== */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.06) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}