@import url('fonts.css');

:root {
    --tim-red: #c8102e;
    --tim-red-dark: #a10d24;
    --tim-brown: #4a2511;
    --paper: #fff9ef;
    --ink: #f5f3ef;
    --text-soft: rgba(245, 243, 239, 0.82);
    --line-soft: rgba(255, 255, 255, 0.18);
    --field-bg: rgba(8, 8, 10, 0.35);
    --header-height: 74px;
    --layout-max: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --ease-out: 260ms ease;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Sofia Pro', sans-serif;
    color: var(--ink);
    background: #0f0f12;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.access-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(7, 7, 8, 0.84), rgba(7, 7, 8, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.access-header-inner {
    width: min(var(--layout-max), 100%);
    margin: 0 auto;
    min-height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--tim-red);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transform: translateY(2px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    transition: transform var(--ease-out), border-color var(--ease-out), background-color var(--ease-out);
}

.back-link i {
    width: 16px;
    height: 16px;
}

.back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.08);
}

.access-main {
    min-height: 100svh;
}

.access-hero {
    position: relative;
    min-height: 100svh;
    padding-top: var(--header-height);
    isolation: isolate;
    overflow: hidden;
}

.access-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(200, 16, 46, 0.34), transparent 46%),
        linear-gradient(125deg, rgba(10, 10, 12, 0.78), rgba(8, 8, 10, 0.9)),
        url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    animation: bgPulse 18s ease-in-out infinite alternate;
    z-index: -2;
}

.access-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.58) 100%);
    z-index: -1;
}

.hero-content {
    width: min(var(--layout-max), 100%);
    margin: 0 auto;
    min-height: calc(100svh - var(--header-height));
    padding: 3.25rem 2rem 2.75rem;
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(2.25rem, 4vw, 5rem);
}

.hero-copy {
    max-width: 630px;
    animation: rise 650ms ease-out both;
}

.hero-eyebrow {
    margin: 0 0 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-subtitle {
    margin: 1.35rem 0 1.85rem;
    max-width: 52ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    line-height: 1.56;
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.hero-points i {
    width: 18px;
    height: 18px;
    color: #fff;
    opacity: 0.86;
}

.access-actions {
    border-left: 1px solid var(--line-soft);
    padding-left: clamp(1.5rem, 3vw, 2.6rem);
    backdrop-filter: blur(1px);
    animation: rise 720ms ease-out both;
    animation-delay: 90ms;
}

.auth-feedback {
    margin: 0 0 1rem;
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.82rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.auth-feedback-error {
    background: rgba(200, 16, 46, 0.15);
    border-color: rgba(200, 16, 46, 0.45);
    color: #ffd7dd;
}

.auth-feedback-success {
    background: rgba(46, 160, 67, 0.14);
    border-color: rgba(46, 160, 67, 0.45);
    color: #d6ffdf;
}

.auth-feedback-info {
    background: rgba(87, 160, 211, 0.16);
    border-color: rgba(87, 160, 211, 0.5);
    color: #d8eeff;
}

.auth-feedback-warning {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.52);
    color: #fff1c7;
}

.auth-block {
    animation: rise 760ms ease-out both;
}

.auth-kicker {
    margin: 0 0 0.42rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.66);
    font-weight: 700;
}

.auth-block h2 {
    margin: 0 0 0.45rem;
    font-size: 1.58rem;
    letter-spacing: -0.02em;
}

.auth-description {
    margin: 0 0 1.1rem;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.52;
    max-width: 44ch;
}

.credentials-form {
    display: grid;
    gap: 0.62rem;
}

.credentials-form label {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.credentials-form input {
    appearance: none;
    width: 100%;
    padding: 0.8rem 0.88rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--field-bg);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
}

.credentials-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.credentials-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.password-requirements {
    margin-top: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(8, 8, 10, 0.28);
    padding: 0.62rem 0.75rem;
}

.password-requirements p {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.password-requirements ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.16rem;
}

.password-requirements li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    line-height: 1.35;
}

.credentials-btn {
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: var(--tim-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.76rem 0.85rem;
    cursor: pointer;
    transition: transform var(--ease-out), background-color var(--ease-out);
}

.credentials-btn:hover {
    background: var(--tim-red-dark);
    transform: translateY(-1px);
}

.turnstile-wrap {
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.forgot-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 2px;
    font-size: 0.87rem;
}

.auth-divider {
    margin: 1.2rem 0 1.15rem;
    position: relative;
    height: 1px;
    background: var(--line-soft);
}

.auth-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(24, 24, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    background: var(--paper);
    color: var(--tim-brown);
    border-radius: var(--radius-md);
    padding: 0.86rem 1.1rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform var(--ease-out), box-shadow var(--ease-out), border-color var(--ease-out);
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    border-color: rgba(74, 37, 17, 0.25);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.04);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.45rem;
    }

    .access-actions {
        border-left: none;
        border-top: 1px solid var(--line-soft);
        padding-left: 0;
        padding-top: 1.6rem;
        max-width: 680px;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 68px;
    }

    .access-header-inner {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.03rem;
    }

    .back-link {
        font-size: 0.86rem;
        padding: 0.45rem 0.68rem;
    }

    .hero-content {
        padding: 1.9rem 1rem 1.8rem;
        min-height: calc(100svh - var(--header-height));
    }

    .hero-title {
        font-size: clamp(1.72rem, 7vw, 2.3rem);
    }

    .hero-subtitle {
        margin-top: 1rem;
        margin-bottom: 1.4rem;
    }

    .auth-block h2 {
        font-size: 1.32rem;
    }

    .google-btn {
        width: 100%;
        justify-content: center;
    }
}
