:root {
    --ga-auth-bg: #f6f3ee;
    --ga-auth-surface: rgba(255, 255, 255, 0.88);
    --ga-auth-surface-strong: #ffffff;
    --ga-auth-border: rgba(25, 30, 45, 0.08);
    --ga-auth-text: #1b2330;
    --ga-auth-muted: #667085;
    --ga-auth-accent: #b68a35;
    --ga-auth-accent-dark: #8f6a22;
    --ga-auth-danger: #d92d20;
    --ga-auth-success: #067647;
    --ga-auth-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    --ga-auth-radius-xl: 28px;
    --ga-auth-radius-lg: 18px;
    --ga-auth-radius-md: 14px;
    --ga-auth-input-h: 52px;
    --ga-auth-maxw: 1120px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body.ga-auth-body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--ga-auth-text);
    background:
        radial-gradient(circle at top left, rgba(182, 138, 53, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(137, 82, 180, 0.10), transparent 24%),
        linear-gradient(180deg, #faf8f4 0%, #f2eee8 100%);
}

.ga-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.ga-auth-wrap {
    width: 100%;
    max-width: var(--ga-auth-maxw);
}

.ga-auth-card {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: var(--ga-auth-surface);
    border: 1px solid var(--ga-auth-border);
    border-radius: var(--ga-auth-radius-xl);
    box-shadow: var(--ga-auth-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ga-auth-brand-block {
    position: relative;
    padding: 52px 48px;
    background:
        linear-gradient(135deg, rgba(182, 138, 53, 0.10), rgba(255, 255, 255, 0.92)),
        linear-gradient(180deg, #fcfbf8 0%, #f6f1ea 100%);
    border-right: 1px solid var(--ga-auth-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.ga-auth-brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.ga-auth-brand-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ga-auth-brand-logo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ga-auth-brand-logo-placeholder.alt {
    background: linear-gradient(135deg, #6d4aff, #8d67ff);
}

.ga-auth-brand-name {
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    color: var(--ga-auth-text);
}

.ga-auth-brand-divider {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--ga-auth-border);
    display: grid;
    place-items: center;
    color: var(--ga-auth-accent-dark);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.ga-auth-brand-copy h1 {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    color: #1a1c22;
}

.ga-auth-brand-copy p {
    margin: 0;
    max-width: 540px;
    color: var(--ga-auth-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.ga-auth-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--ga-auth-border);
    color: var(--ga-auth-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.ga-auth-form-block {
    padding: 52px 42px;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-auth-form {
    width: 100%;
    max-width: 420px;
}

.ga-auth-form-header {
    margin-bottom: 24px;
}

.ga-auth-form-header h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--ga-auth-text);
}

.ga-auth-form-header p {
    margin: 0;
    color: var(--ga-auth-muted);
    font-size: 0.96rem;
}

.ga-auth-field {
    margin-bottom: 18px;
}

.ga-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ga-auth-text);
}

.ga-auth-input-wrap {
    position: relative;
}

.ga-auth-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1rem;
}

.ga-auth-input-wrap input {
    width: 100%;
    height: var(--ga-auth-input-h);
    padding: 0 16px 0 46px;
    border: 1px solid #d9dee7;
    border-radius: var(--ga-auth-radius-md);
    background: #fff;
    color: var(--ga-auth-text);
    font-size: 0.98rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ga-auth-input-wrap input:focus {
    outline: none;
    border-color: rgba(182, 138, 53, 0.75);
    box-shadow: 0 0 0 4px rgba(182, 138, 53, 0.14);
}

.ga-auth-input-wrap input::placeholder {
    color: #98a2b3;
}

.ga-auth-row {
    margin-top: 2px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ga-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--ga-auth-text);
    cursor: pointer;
    user-select: none;
}

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

.ga-auth-help-text {
    font-size: 0.9rem;
    color: var(--ga-auth-muted);
    text-align: right;
}

.ga-auth-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: var(--ga-auth-radius-md);
    background: linear-gradient(135deg, var(--ga-auth-accent), var(--ga-auth-accent-dark));
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(182, 138, 53, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ga-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(182, 138, 53, 0.28);
}

.ga-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ga-auth-footnote {
    margin-top: 18px;
    text-align: center;
    color: var(--ga-auth-muted);
    font-size: 0.89rem;
    line-height: 1.6;
}

.ga-auth-error {
    margin-top: 8px;
    color: var(--ga-auth-danger);
    font-size: 0.88rem;
    font-weight: 600;
}

.ga-auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.ga-auth-alert-success {
    color: var(--ga-auth-success);
    background: rgba(6, 118, 71, 0.08);
    border: 1px solid rgba(6, 118, 71, 0.14);
}

@media (max-width: 991.98px) {
    .ga-auth-card {
        grid-template-columns: 1fr;
    }

    .ga-auth-brand-block {
        border-right: 0;
        border-bottom: 1px solid var(--ga-auth-border);
        padding: 36px 26px 30px;
    }

    .ga-auth-form-block {
        padding: 34px 22px 36px;
    }
}

@media (max-width: 575.98px) {
    .ga-auth-shell {
        padding: 16px;
    }

    .ga-auth-brand-copy h1 {
        font-size: 1.75rem;
    }

    .ga-auth-brand-copy p {
        font-size: 0.94rem;
    }

    .ga-auth-help-text {
        text-align: left;
    }

    .ga-auth-brand-logos {
        gap: 14px;
    }

    .ga-auth-brand-logo-placeholder {
        width: 74px;
        height: 74px;
        border-radius: 20px;
    }
}
