@import url("./variables.css");

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

html {
    min-height: 100%;
    background: var(--color-background);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-family);
    background: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
}

p {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.eyebrow {
    margin: 0 0 var(--space-3);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: var(--space-7);
    border: 1px solid rgba(214, 179, 106, 0.38);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(214, 179, 106, 0.24),
            rgba(214, 179, 106, 0.06)
        );
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-small);
}

.brand-mark-small {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
    font-size: 0.8rem;
}

.auth-page {
    min-height: 100vh;
    overflow: hidden;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(48px, 7vw, 110px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(214, 179, 106, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(42, 100, 77, 0.2),
            transparent 38%
        ),
        #12151b;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(214, 179, 106, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 60px rgba(214, 179, 106, 0.025),
        0 0 0 120px rgba(214, 179, 106, 0.015);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    margin: 0 auto;
}

.auth-brand-title {
    margin: 0;
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.auth-brand-description {
    width: min(100%, 560px);
    margin: var(--space-6) 0 0;
    color: var(--color-text-soft);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.auth-brand-features {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-text-soft);
}

.auth-feature-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 179, 106, 0.22);
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 900;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(28px, 6vw, 90px);
    background:
        radial-gradient(
            circle at top right,
            rgba(214, 179, 106, 0.07),
            transparent 32%
        ),
        var(--color-background);
}

.auth-form-wrapper {
    width: min(100%, 470px);
    margin: 0 auto;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    color: var(--color-text);
    font-weight: 800;
}

.auth-heading {
    margin-bottom: var(--space-7);
}

.auth-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-subtitle {
    margin: var(--space-4) 0 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.guest-access-note {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.02);
}

.guest-access-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 900;
}

.guest-access-note strong {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--color-text);
}

.guest-access-note p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-footer {
    margin-top: var(--space-7);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: var(--space-6);
    }

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

@media (max-width: 575.98px) {
    .auth-form-panel {
        align-items: flex-start;
        padding:
            max(var(--space-6), env(safe-area-inset-top))
            var(--space-4)
            max(var(--space-6), env(safe-area-inset-bottom));
    }

    .auth-form-wrapper {
        margin-top: var(--space-3);
    }

    .auth-mobile-brand {
        margin-bottom: var(--space-7);
    }

    .auth-heading {
        margin-bottom: var(--space-6);
    }

    .auth-title {
        font-size: 2.5rem;
    }
}
.guest-access-action {
    align-items: flex-start;
}

.guest-access-button {
    margin-top: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
    color: #f5d77a;
    font-weight: 700;
}

.guest-access-button:hover,
.guest-access-button:focus {
    background: #d4af37;
    color: #17120a;
}
