@import url("anibot-brand.css");

:root {
    --auth-font: "Outfit", system-ui, sans-serif;
    --auth-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body.auth-page {
    font-family: var(--auth-font);
    min-height: 100vh;
    color: #f2f7f4;
    background: var(--anibot-black);
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 12% 8%, var(--anibot-green-25), transparent 55%),
        radial-gradient(ellipse 50% 45% at 88% 15%, var(--anibot-cyan-15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, var(--anibot-green-12), transparent 55%),
        linear-gradient(165deg, var(--anibot-charcoal) 0%, var(--anibot-black) 48%, #050806 100%);
    z-index: 0;
}

.auth-grid {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-right: 1px solid var(--anibot-stroke);
    background: linear-gradient(180deg, rgba(18, 24, 22, 0.92) 0%, rgba(8, 12, 10, 0.75) 100%);
}

.auth-showcase-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: var(--anibot-gray-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
}
.auth-home-link:hover { color: var(--anibot-green-light); }

.auth-showcase-brand {
    max-width: 30rem;
}
.auth-showcase-brand .brand-logo-full,
.auth-panel-mobile-brand .brand-logo-full {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(100%, 280px);
    filter: none;
}

.auth-showcase-lead {
    margin: 1.25rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.auth-showcase-lead span {
    color: var(--anibot-green-light);
}

.auth-showcase-desc {
    margin: 0.85rem 0 0;
    max-width: 28rem;
    color: var(--anibot-gray-light);
    font-size: 0.98rem;
    line-height: 1.55;
}

.auth-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.1rem;
    max-width: 32rem;
}

.auth-product-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(67, 192, 122, 0.28);
    background: rgba(67, 192, 122, 0.1);
    color: var(--anibot-green-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.auth-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 26rem;
}
.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #dce8e0;
    line-height: 1.45;
}
.auth-feature-list li i {
    margin-top: 0.15rem;
    color: var(--anibot-green);
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.auth-showcase-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--anibot-stroke);
    font-size: 0.78rem;
    color: var(--anibot-gray);
    letter-spacing: 0.02em;
}

.auth-panel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    border-radius: 1.15rem;
    border: 1px solid rgba(67, 192, 122, 0.22);
    background: rgba(12, 18, 15, 0.82);
    backdrop-filter: blur(16px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.auth-panel-mobile-brand {
    display: none;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.auth-panel h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-panel .auth-sub {
    margin: 0 0 1.5rem;
    color: var(--anibot-gray-light);
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.auth-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--anibot-gray-light);
    letter-spacing: 0.02em;
}
.auth-field input {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid var(--anibot-stroke);
    background: rgba(0, 0, 0, 0.35);
    color: #f8faf9;
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input::placeholder { color: var(--anibot-gray); }
.auth-field input:focus {
    outline: none;
    border-color: var(--anibot-green);
    box-shadow: 0 0 0 3px var(--anibot-green-25);
}

.auth-submit {
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.78rem 1rem;
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--anibot-black);
    background: linear-gradient(180deg, var(--anibot-green-light) 0%, var(--anibot-green) 100%);
    box-shadow: 0 8px 24px var(--anibot-green-25);
    transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.auth-submit:hover {
    filter: brightness(1.04);
    box-shadow: var(--anibot-glow-green);
}
.auth-submit:active { transform: translateY(1px); }

.brand-logo {
    display: block;
    object-fit: contain;
    image-rendering: auto;
}

.brand-logo-full {
    height: 52px;
    width: auto;
    max-width: min(100%, 280px);
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
}

@media (max-width: 960px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
    .auth-showcase {
        display: none;
    }
    .auth-panel-mobile-brand {
        display: flex;
    }
    .auth-panel-wrap {
        min-height: 100vh;
        align-items: center;
    }
}
