@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1200 0%, #000000 70%);
    direction: ltr;
}

.container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.auth {
    background: rgba(20, 18, 12, 0.55);
    padding: 56px 40px;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 0 120px rgba(255, 215, 0, 0.18),
        inset 0 0 50px rgba(255, 215, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.2s ease-out;
}

/* نوار طلایی درخشان بالا */
.auth::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #78350f, #f59e0b, #ffd700, #fbbf24, #f59e0b, #78350f);
    box-shadow: 0 0 40px #ffd700, 0 0 80px #ffaa00;
    border-radius: 28px 28px 0 0;
}

/* عنوان طلایی درخشان */
h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 36px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #f59e0b, #ffd700, #fbbf24, #fde047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    position: relative;
}

/* افکت زیر عنوان */
h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px #ffd700;
}

input {
    width: 100%;
    padding: 18px 22px;
    margin: 14px 0;
    background: rgba(40, 35, 25, 0.5);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
}

input:focus {
    border-color: #ffd700;
    background: rgba(60, 50, 30, 0.7);
    box-shadow: 
        0 0 0 5px rgba(255, 215, 0, 0.25),
        0 0 40px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

input::placeholder {
    color: #aaaaaa;
    font-weight: 400;
}

button {
    width: 100%;
    padding: 19px;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.8s;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.7);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-2px);
}

.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    margin: 14px 0;
    border: 1px solid rgba(248, 113, 113, 0.3);
    font-size: 14px;
    backdrop-filter: blur(8px);
}

p {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
}

p a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

p a:hover {
    color: #ffffff;
    text-shadow: 0 0 30px #ffd700;
}

/* انیمیشن ورود */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .auth {
        padding: 48px 28px;
        border-radius: 24px;
    }
    h2 {
        font-size: 36px;
    }
    button {
        padding: 18px;
    }
}