/* Auth split layout — gdi-auth-preview / split-screen mockup */

/* Старые слои (англ. mockup, particles) — скрыть */
.gdi-auth-exact .particles,
.gdi-auth-exact .login-header,
.gdi-auth-exact .gdi-auth-ref__card-hero,
.gdi-auth-exact .gdi-login-card__head {
    display: none !important;
}

.gdi-auth-exact {
    --gdi-auth-primary: #583ee1;
    --gdi-auth-primary-dark: #4a32c4;
    --gdi-auth-text: #111827;
    --gdi-auth-muted: #6b7280;
    --gdi-auth-border: #d1d5db;
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: var(--gdi-auth-text);
}

.gdi-auth-exact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.gdi-auth-exact__hero {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
    background-color: #1a103d;
    background-image: url('../images/auth/hero-bg.webp');
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
}

.gdi-auth-exact__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 6, 32, 0.55) 0%, rgba(12, 6, 32, 0.18) 52%, rgba(12, 6, 32, 0.05) 100%),
        linear-gradient(180deg, rgba(8, 4, 24, 0.08) 0%, rgba(8, 4, 24, 0.42) 100%);
    pointer-events: none;
}

.gdi-auth-exact__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 560px;
    color: #fff;
}

.gdi-auth-exact__hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.gdi-auth-exact__hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gdi-auth-exact__hero-lead {
    margin: 0 0 2.25rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
}

.gdi-auth-exact__hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.gdi-auth-exact__hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.gdi-auth-exact__hero-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gdi-auth-primary);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(88, 62, 225, 0.35);
}

.gdi-auth-exact__hero-features strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.gdi-auth-exact__hero-features small {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.gdi-auth-exact__panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 6vw, 4.5rem);
    background: #fff;
    overflow-y: auto;
}

.gdi-auth-exact__panel-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.gdi-auth-exact--register .gdi-auth-exact__panel-inner {
    max-width: 500px;
}

.gdi-auth-exact__tabs {
    display: flex;
    gap: 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.75rem;
}

.gdi-auth-exact__tab {
    padding: 0 0 0.75rem;
    margin-bottom: -1px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gdi-auth-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.gdi-auth-exact__tab:hover {
    color: var(--gdi-auth-primary);
}

.gdi-auth-exact__tab.is-active {
    color: var(--gdi-auth-primary);
    border-bottom-color: var(--gdi-auth-primary);
}

.gdi-auth-exact__heading {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gdi-auth-exact__subheading {
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
    color: var(--gdi-auth-muted);
}

.gdi-auth-exact .gdi-field {
    margin-bottom: 1rem;
}

.gdi-auth-exact .gdi-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
}

.gdi-auth-exact .gdi-field__control,
.gdi-auth-exact .gdi-register-input-wrap {
    position: relative;
}

.gdi-auth-exact .gdi-field__input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gdi-auth-border);
    border-radius: 8px;
    padding: 0.55rem 2.5rem 0.55rem 2.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--gdi-auth-text);
    background: #fff;
    box-shadow: none;
}

.gdi-auth-exact .gdi-field__input:focus {
    outline: none;
    border-color: rgba(88, 62, 225, 0.55);
    box-shadow: 0 0 0 3px rgba(88, 62, 225, 0.12);
}

.gdi-auth-exact .gdi-field__input.is-invalid {
    border-color: #ef4444;
}

.gdi-auth-exact .gdi-field__icon,
.gdi-auth-exact .gdi-field__icon-left {
    position: absolute;
    top: 50%;
    left: 12px;
    right: auto;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    color: #9ca3af;
    pointer-events: none;
}

.gdi-auth-exact .gdi-field__icon svg,
.gdi-auth-exact .gdi-field__control > svg.gdi-field__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.gdi-auth-exact .gdi-field__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.gdi-auth-exact .gdi-register-input-wrap--toggle .gdi-field__input {
    padding-right: 2.75rem;
}

.gdi-auth-exact .gdi-register-block {
    margin-bottom: 1rem;
}

.gdi-auth-exact .gdi-register-block__title {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.gdi-auth-exact .gdi-register-block__hint {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: var(--gdi-auth-muted);
}

.gdi-auth-exact .gdi-register-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gdi-auth-exact .gdi-register-roles label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e2deef;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #5c5670;
    cursor: pointer;
}

.gdi-auth-exact .gdi-register-roles input {
    accent-color: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-register-roles label:has(input:checked) {
    border-color: rgba(88, 62, 225, 0.35);
    background: rgba(88, 62, 225, 0.08);
    color: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-register-input-wrap--toggle .gdi-field__icon-left {
    display: none;
}

.gdi-auth-exact .gdi-register-card .grad-activity-row,
.gdi-auth-exact .grad-activity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gdi-auth-exact .grad-activity-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gdi-auth-exact .grad-activity-pill {
    position: relative;
    margin: 0;
}

.gdi-auth-exact .grad-activity-pill__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e2deef;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #5c5670;
    cursor: pointer;
}

.gdi-auth-exact .grad-activity-pill input:checked + .grad-activity-pill__inner {
    border-color: rgba(88, 62, 225, 0.35);
    background: rgba(88, 62, 225, 0.08);
    color: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-register-field-hint {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--gdi-auth-muted);
}

.gdi-auth-exact .gdi-register-captcha {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.gdi-auth-exact .gdi-register-captcha__q {
    flex: 1;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid var(--gdi-auth-border);
    border-radius: 8px;
    background: #faf9fc;
    font-weight: 600;
}

.gdi-auth-exact .gdi-register-captcha__reload {
    width: 46px;
    height: 46px;
    border: 1px solid var(--gdi-auth-border);
    border-radius: 8px;
    background: #fff;
    color: #7a738f;
    cursor: pointer;
}

.gdi-auth-exact .gdi-register-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.82rem;
    color: #5c5670;
    line-height: 1.45;
}

.gdi-auth-exact .gdi-register-check input {
    margin-top: 0.15rem;
    accent-color: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-btn--primary,
.gdi-auth-exact .gdi-btn--block {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--gdi-auth-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(88, 62, 225, 0.28);
}

.gdi-auth-exact .gdi-btn--primary:hover {
    background: var(--gdi-auth-primary-dark);
}

.gdi-auth-exact .gdi-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
    font-size: 0.84rem;
}

.gdi-auth-exact .gdi-auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #5c5670;
    cursor: pointer;
}

.gdi-auth-exact .gdi-auth-row input {
    accent-color: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-auth-link {
    color: var(--gdi-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.gdi-auth-exact .gdi-auth-link:hover {
    text-decoration: underline;
}

.gdi-auth-exact .gdi-auth-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #5c5670;
}

.gdi-auth-exact .gdi-auth-panel {
    display: none;
}

.gdi-auth-exact .gdi-auth-panel.is-active {
    display: block;
}

.gdi-auth-exact .gdi-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0;
    color: var(--gdi-auth-muted);
    font-size: 0.82rem;
}

.gdi-auth-exact .gdi-auth-divider::before,
.gdi-auth-exact .gdi-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.gdi-auth-exact .gdi-auth-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.gdi-auth-exact .gdi-auth-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border: 1px solid var(--gdi-auth-border);
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.gdi-auth-exact .gdi-auth-social svg {
    width: 18px;
    height: 18px;
}

.gdi-auth-exact .gdi-auth-footer,
.gdi-auth-exact .gdi-register-card__footer,
.gdi-auth-exact .gdi-login-card__footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--gdi-auth-muted);
}

.gdi-auth-exact .gdi-auth-footer a,
.gdi-auth-exact .gdi-register-card__footer a,
.gdi-auth-exact .gdi-login-card__footer a {
    color: var(--gdi-auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.gdi-auth-exact .gdi-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.gdi-auth-exact .gdi-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.gdi-auth-exact .gdi-alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.gdi-auth-exact .gdi-alert--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.gdi-auth-exact .gdi-register-errors {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.gdi-auth-exact .gdi-auth-note {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f5f2fb;
    font-size: 0.82rem;
    color: #5c5670;
}

.gdi-auth-exact .gdi-login-extra {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.82rem;
}

.gdi-auth-exact .gdi-auth-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.gdi-auth-exact .gdi-auth-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdi-auth-exact .gdi-auth-switch span {
    position: absolute;
    inset: 0;
    background: #ddd6f3;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gdi-auth-exact .gdi-auth-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.gdi-auth-exact .gdi-auth-switch input:checked + span {
    background: var(--gdi-auth-primary);
}

.gdi-auth-exact .gdi-auth-switch input:checked + span::after {
    transform: translateX(20px);
}

.gdi-auth-exact .gdi-field__control .gdi-field__toggle {
    z-index: 2;
}

@media (max-width: 960px) {
    .gdi-auth-exact__layout {
        grid-template-columns: 1fr;
    }

    .gdi-auth-exact__hero {
        min-height: 280px;
    }

    .gdi-auth-exact__hero-inner {
        padding: 2rem 1.5rem;
    }

    .gdi-auth-exact__hero-features {
        display: none;
    }
}
