
:root {
    --eggshell: #F8F4EB;
    --dark-vanilla: #D4B896;
    --dark-gray: #2A2A30;
    --red-dragee: #A83245;
    --red-accent: #D95A6A;
    --red-dragee-hover: #A01147;
    --text-primary: #2A2A30;
    --text-secondary: #555560;
    --white: #FFFFFF;
    --shadow: 0 6px 18px rgba(42, 42, 48, 0.08);
    --shadow-hover: 0 12px 28px rgba(168, 50, 69, 0.18);
    --radius: 14px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--eggshell);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.body-card{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
}

.dropdown {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--dark-vanilla);
    border-radius: var(--radius);
    background: var(--eggshell);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 140px;
}
.dropdown:hover { border-color: var(--red-dragee); }

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--dark-gray) 40%, var(--red-dragee) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.btn-auth {
    padding: 0.65rem 1.6rem;
    background: var(--red-dragee);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 50, 69, 0.25);
}
.btn-auth:hover {
    background: var(--red-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 50, 69, 0.35);
}

/* HERO / DESCRIPTION */
.hero {
    text-align: center;
    padding: 4rem 5% 3rem;
    max-width: 850px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
    line-height: 1.2;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}
.accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-vanilla), var(--red-dragee));
    margin: 0 auto;
    border-radius: 4px;
}

/* GAMES GRID */
.games-section {
    padding: 2rem 5% 5rem;
    max-width: 1280px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.game-card h3 {
    padding: 1.4rem 1.4rem 0.6rem;
    font-size: 1.35rem;
    color: var(--dark-gray);
    font-weight: 700;
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: fill;
    border-top: 3px solid var(--dark-vanilla);
    border-bottom: 3px solid var(--dark-vanilla);
    transition: filter 0.3s ease;
}
.game-card:hover img { filter: brightness(1.05); }

.game-card p {
    padding: 1.2rem 1.4rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.55;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--vanilla-dark);
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
}

/* Энергичный акцент сверху */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vanilla-dark), var(--red-dragee), var(--vanilla-dark));
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark-gray); }
.auth-header p { color: #6B6560; font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.45rem; font-size: 0.9rem; font-weight: 500; }

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--vanilla-dark);
    border-radius: 10px;
    background: #FDFCF9;
    color: var(--dark-gray);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--red-dragee);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.12);
    background: var(--white);
}
.form-group input::placeholder { color: #A89F96; }

.btn-submit {
    width: 100%;
    padding: 0.95rem;
    background: var(--red-dragee);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--red-dragee-hover); transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }

.error-text { color: var(--red-dragee); font-size: 0.8rem; margin-top: 0.35rem; display: block; }
.success-alert { background: #E8F5E9; color: #2E7D32; padding: 0.8rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: #6B6560; }
.auth-footer a { color: var(--red-dragee); text-decoration: none; font-weight: 500; transition: var(--transition); }
.auth-footer a:hover { text-decoration: underline; }


/* RESPONSIVE */
@media (max-width: 960px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    header {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        padding: 1rem 4%;
    }
    .logo { order: -1; width: 100%; margin-bottom: 0.5rem; }
    .dropdown, .btn-auth { width: 100%; text-align: center; }

    .games-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 5% 2rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .game-card img { height: 190px; }
}
