/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Yekan Bakh", sans-serif;
}

/* پس‌زمینه */
body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.background {
    background: url("img/bg.jpg") no-repeat center center/cover;
    filter: blur(12px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* لایه رویی */
.overlay {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffba00;
    padding: 20px;
}

/* متن اصلی */
.overlay h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 186, 0, 0.6);
}

/* متن توضیح */
.overlay p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.8;
    margin-bottom: 25px;
}

/* لینک بازگشت */
.back-link {
    display: inline-block;
    padding: 12px 25px;
    background: #ffba00;
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 186, 0, 0.3);
}

.back-link:hover {
    background: #e6a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 186, 0, 0.4);
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .overlay h1 {
        font-size: 2.5rem;
    }
    .overlay p {
        font-size: 1rem;
    }
    .back-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}


/* Variables */
:root {
    --primary: #ffba00;
    --primary-dark: #e6a800;
    --dark: #0F0F15;
    --darker: #0A0A0E;
    --light: #E2E2E2;
    --lighter: #FFFFFF;
    --gray: #2D2D3A;
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f39c12;
}

/* Background Animation */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a12;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Animated Light Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 186, 0, 0.6);
    border-radius: 50%;
    filter: blur(5px);
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) translateX(1000px);
        opacity: 0;
    }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(25, 25, 35, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 186, 0, 0.15);
    transition: all 0.4s ease;
}

.auth-container:hover {
    border-color: rgba(255, 186, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 65px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 186, 0, 0.3));
}

.auth-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: var(--light);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i:first-of-type {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 186, 0, 0.7);
    font-size: 16px;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--light);
    font-family: 'Iranian Sans', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 186, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.toggle-password {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    text-align: left;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: 'Iranian Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-auth-submit .btn-text {
    position: relative;
    z-index: 2;
}

.btn-auth-submit i {
    position: relative;
    z-index: 2;
    font-size: 14px;
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-auth-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 186, 0, 0.3);
}

.btn-auth-submit:hover::before {
    left: 100%;
}

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-toggle-text, .terms-of-text {
    color: var(--light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.toggle-form, .terms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.toggle-form:hover, .terms-link:hover {
    color: var(--lighter);
    text-decoration: none;
}

.toggle-form::after, .terms-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.toggle-form:hover::after, .terms-link:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.terms-of-text {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    padding: 0;
    color: var(--light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    width: 100%;
}

.notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 3.5s forwards;
    position: relative;
    overflow: hidden;
}

.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    animation: progress 3s linear forwards;
}

.notification i {
    font-size: 20px;
}

.notification.success {
    background-color: var(--success);
    border-left: 4px solid #27ae60;
}

.notification.error {
    background-color: var(--error);
    border-left: 4px solid #c0392b;
}

.notification.warning {
    background-color: var(--warning);
    border-left: 4px solid #d35400;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .auth-logo {
        height: 55px;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .input-with-icon input {
        padding: 12px 15px 12px 40px;
    }
    
    .notification-container {
        top: 10px;
        right: 10px;
        max-width: 90%;
    }
}