@import url('local-fonts.css');

:root {
    --auth-bg: #06100c;
    --auth-panel: rgba(10, 23, 18, 0.78);
    --auth-panel-strong: rgba(10, 21, 16, 0.86);
    --auth-border: rgba(151, 196, 170, 0.14);
    --auth-border-strong: rgba(151, 196, 170, 0.22);
    --auth-ink: #f4fbf7;
    --auth-muted: rgba(220, 235, 226, 0.72);
    --auth-accent: #7bb98f;
    --auth-accent-strong: #3a8757;
    --auth-accent-deep: #173929;
    --auth-line: rgba(193, 220, 205, 0.12);
    --auth-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    --auth-input-bg: rgba(7, 16, 12, 0.74);
    --auth-input-border: rgba(195, 220, 206, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--auth-ink);
    background: var(--auth-bg);
    overflow: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 24px 18px 72px;
    background:
        radial-gradient(circle at top left, rgba(120, 185, 139, 0.15), transparent 32%),
        radial-gradient(circle at bottom right, rgba(55, 115, 81, 0.18), transparent 28%),
        #06100c;
}

.auth-container::before,
.auth-container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(88px);
    opacity: 0.58;
    pointer-events: none;
    z-index: 2;
}

.auth-container::before {
    width: 280px;
    height: 280px;
    top: -70px;
    right: -40px;
    background: rgba(91, 164, 115, 0.2);
}

.auth-container::after {
    width: 240px;
    height: 240px;
    bottom: -90px;
    left: -50px;
    background: rgba(22, 72, 50, 0.28);
}

.auth-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: grayscale(0.2) saturate(0.75) contrast(1.02);
    z-index: 1;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(4, 10, 8, 0.9) 0%, rgba(7, 18, 13, 0.74) 55%, rgba(9, 24, 18, 0.84) 100%),
        repeating-linear-gradient(90deg, rgba(120, 185, 139, 0.03) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(120, 185, 139, 0.03) 0 1px, transparent 1px 96px);
}

.auth-card-wrapper {
    position: relative;
    z-index: 10;
    width: min(1080px, 100%);
    margin: auto 0;
    animation: fadeInScale 0.65s ease-out;
}

.auth-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    background: rgba(8, 18, 14, 0.48);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-intel-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 38px 38px 34px;
    background:
        linear-gradient(180deg, rgba(11, 29, 22, 0.84), rgba(10, 22, 17, 0.92));
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.auth-intel-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(146, 192, 168, 0.09), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
    pointer-events: none;
}

.glass-card.auth-form-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 30px 28px 24px;
    background:
        linear-gradient(180deg, rgba(10, 23, 18, 0.88), rgba(8, 18, 14, 0.96));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-card.auth-form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
        linear-gradient(135deg, rgba(146, 192, 168, 0.05), transparent 50%);
    pointer-events: none;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--auth-border-strong);
    background: rgba(120, 185, 139, 0.08);
    color: #dff2e4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-intel-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 136px;
    height: 136px;
    margin-bottom: 1.4rem;
    border-radius: 28px;
    background: rgba(249, 252, 250, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 30px rgba(0, 0, 0, 0.22);
}

.auth-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #f4fbf7;
    margin-bottom: 0.9rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.auth-subtitle {
    max-width: 420px;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.auth-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.6rem;
}

.auth-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(151, 196, 170, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(234, 245, 239, 0.86);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-header,
.auth-form {
    position: relative;
}

.auth-header {
    margin-bottom: 1.3rem;
}

.auth-form-kicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #b9d9c4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f4fbf7;
}

.auth-form-subtitle {
    margin-top: 0.5rem;
    color: var(--auth-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.auth-form {
    margin-top: 0.9rem;
}

.form-group {
    margin-bottom: 14px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    color: #c8dfd0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(206, 224, 214, 0.6);
    font-size: 1rem;
    pointer-events: none;
}

.auth-input,
.auth-select {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--auth-input-border);
    background: linear-gradient(180deg, rgba(8, 17, 13, 0.76), rgba(12, 24, 18, 0.86));
    color: #f6fbf8;
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input {
    padding: 11px 14px 11px 42px;
}

.auth-input--with-toggle {
    padding-right: 48px;
}

.auth-select {
    padding: 11px 14px;
}

.auth-input::placeholder {
    color: rgba(215, 228, 220, 0.36);
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: rgba(120, 185, 139, 0.52);
    box-shadow: 0 0 0 4px rgba(120, 185, 139, 0.12);
    background: linear-gradient(180deg, rgba(9, 21, 16, 0.9), rgba(12, 28, 20, 0.92));
}

.password-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(221, 236, 227, 0.76);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.password-eye-btn:hover,
.password-eye-btn:focus {
    background: rgba(120, 185, 139, 0.12);
    color: #fff;
    outline: none;
}

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    margin-top: 8px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(90deg, #21543d 0%, #3b8657 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(12, 41, 27, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, #1d4a35 0%, #33744c 100%);
    box-shadow: 0 20px 34px rgba(12, 41, 27, 0.34);
}

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

.auth-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--auth-line);
    text-align: center;
}

.auth-link {
    color: #d6ecd9;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-warning-note {
    margin-top: 10px;
    color: rgba(223, 236, 228, 0.52);
    font-size: 0.64rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-global-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 10;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.error-message {
    color: #ff8787;
    font-size: 0.82rem;
    margin-top: 6px;
    display: block;
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-select option {
    background: #102018;
    color: #f3fbf6;
}

@media (max-width: 920px) {
    body {
        overflow: auto;
    }

    .auth-container {
        padding: 16px 14px 18px;
        justify-content: flex-start;
    }

    .auth-split-layout {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .auth-intel-panel {
        padding: 24px 20px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        text-align: center;
    }

    .glass-card.auth-form-panel {
        padding: 22px 20px 18px;
    }

    .auth-intel-logo-wrap {
        width: 96px;
        height: 96px;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
    }

    .auth-title {
        font-size: clamp(1.55rem, 5vw, 2.1rem);
        max-width: none;
    }

    .auth-meta-row {
        justify-content: center;
    }

    .auth-form-panel .auth-form {
        max-width: none;
    }

    .auth-global-footer {
        position: static;
        margin-top: 12px;
        padding-bottom: 4px;
    }
}

@media (max-width: 640px) {
    .auth-container {
        padding: 12px 12px 16px;
    }

    .auth-intel-panel {
        padding: 18px 16px 16px;
    }

    .glass-card.auth-form-panel {
        padding: 18px 16px 16px;
    }

    .auth-title {
        font-size: 1.7rem;
        line-height: 1.08;
    }

    .auth-subtitle,
    .auth-form-subtitle {
        font-size: 0.83rem;
        line-height: 1.45;
    }

    .auth-meta-row {
        margin-top: 1rem;
    }

    .auth-meta-pill {
        justify-content: center;
        width: fit-content;
    }

    .auth-form-title {
        font-size: 1.4rem;
    }

    .auth-link {
        font-size: 0.82rem;
    }

    .auth-warning-note {
        font-size: 0.6rem;
    }
}

@media (max-height: 860px) and (min-width: 921px) {
    .auth-card-wrapper {
        width: min(1020px, 100%);
    }

    .auth-intel-panel,
    .glass-card.auth-form-panel {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .auth-intel-logo-wrap {
        width: 96px;
        height: 96px;
        margin-bottom: 0.9rem;
    }

    .auth-logo {
        width: 66px;
        height: 66px;
    }

    .auth-title {
        font-size: clamp(1.7rem, 3vw, 2.35rem);
    }

    .auth-subtitle {
        font-size: 0.88rem;
    }

    .auth-global-footer {
        bottom: 10px;
    }
}
