@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ink: #f3f5f7;
    --ink-soft: #c5ccd6;
    --muted: #8b93a1;
    --line: rgba(255, 255, 255, 0.12);
    --surface: #14181f;
    --surface-raised: #1c222c;
    --accent: #e2b15b;
    --accent-hover: #f0c579;
    --accent-ink: #1a1408;
    --accent-soft: rgba(226, 177, 91, 0.16);
    --danger: #ff8e85;
    --danger-soft: rgba(255, 100, 90, 0.12);
    --danger-border: rgba(255, 100, 90, 0.35);
    --font-display: 'Bebas Neue', Impact, Haettenschweiler, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.auth-login {
    font-family: var(--font-body);
    color: var(--ink);
    background: #0b0d11;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.2fr 0.8fr;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(8, 10, 14, 0.72) 8%, rgba(8, 10, 14, 0.18) 48%, rgba(226, 177, 91, 0.18)),
        var(--auth-hero-image, url('/images/auth/gym-1.jpg')) center / cover no-repeat;
    animation: authHeroZoom 18s ease-in-out infinite alternate;
}

@keyframes authHeroZoom {
    from {
        background-size: 100% auto;
    }

    to {
        background-size: 108% auto;
    }
}

.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(226, 177, 91, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(8, 10, 14, 0.1), rgba(8, 10, 14, 0.78));
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 48px 56px 56px;
    color: #f7f3ee;
    animation: authRise 0.9s ease both;
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    letter-spacing: 0.04em;
    line-height: 0.92;
    margin: 0 0 18px;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.auth-hero-copy {
    max-width: 28rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(247, 243, 238, 0.86);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
        radial-gradient(circle at top right, rgba(226, 177, 91, 0.1), transparent 38%),
        linear-gradient(180deg, #12161d 0%, #0d1015 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    animation: authRise 0.75s ease 0.12s both;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.auth-kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.auth-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--ink);
}

.auth-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.9rem;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.auth-field label span {
    color: var(--accent);
    margin-left: 2px;
}

.auth-field input[type='email'],
.auth-field input[type='password'],
.auth-field input[type='text'] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-field input::placeholder {
    color: #6f7785;
}

.auth-field input:focus {
    border-color: rgba(226, 177, 91, 0.7);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: #222935;
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 72px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
}

.auth-password-toggle:hover {
    color: var(--ink);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0c579, var(--accent));
    color: var(--accent-ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(226, 177, 91, 0.22);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, var(--accent-hover), #d7a24a);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(226, 177, 91, 0.3);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.auth-footer a {
    display: inline;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-footer a:hover {
    color: var(--accent-hover);
}

.auth-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(110, 190, 140, 0.35);
    background: rgba(110, 190, 140, 0.12);
    color: #9fd4b0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-field textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    outline: none;
}

.auth-field textarea:focus {
    border-color: rgba(226, 177, 91, 0.55);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 24px;
}

.auth-mobile-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.auth-mobile-brand span {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 36vh;
        animation: none;
        background-size: cover;
    }

    .auth-hero-content {
        padding: 28px 24px 32px;
    }

    .auth-brand {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .auth-hero-copy {
        font-size: 0.95rem;
    }

    .auth-panel {
        padding: 28px 20px 40px;
        align-items: flex-start;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .auth-mobile-brand {
        display: block;
    }
}

@media (max-width: 560px) {
    .auth-title {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero,
    .auth-hero-content,
    .auth-card {
        animation: none;
    }
}
