:root {
    --ic-bg: #070816;
    --ic-panel: rgba(255, 255, 255, 0.08);
    --ic-panel-strong: rgba(255, 255, 255, 0.12);
    --ic-border: rgba(255, 255, 255, 0.14);
    --ic-text: #f8fafc;
    --ic-muted: rgba(248, 250, 252, 0.68);
    --ic-muted-2: rgba(248, 250, 252, 0.46);
    --ic-accent: #7c3aed;
    --ic-accent-2: #ec4899;
    --ic-accent-3: #06b6d4;
    --ic-error: #fecaca;
    --ic-error-bg: rgba(239, 68, 68, 0.14);
    --ic-error-border: rgba(248, 113, 113, 0.28);
    --ic-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body.ic-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ic-text);
    background:
        radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.42), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.34), transparent 30%),
        radial-gradient(circle at 65% 86%, rgba(6, 182, 212, 0.20), transparent 34%),
        linear-gradient(135deg, #070816 0%, #101324 48%, #080914 100%);
    overflow-x: hidden;
}

body.ic-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.ic-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
    align-items: center;
    gap: 42px;
    padding: 48px 0;
}

.ic-auth-hero,
.ic-auth-panel {
    min-width: 0;
}

.ic-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 82px;
}

.ic-auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ic-accent), var(--ic-accent-2));
    color: white;
    font-weight: 900;
    letter-spacing: -0.06em;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.35);
}

.ic-auth-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ic-auth-brand span {
    display: block;
    margin-top: 4px;
    color: var(--ic-muted-2);
    font-size: 13px;
}

.ic-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--ic-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(16px);
}

.ic-auth-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.ic-auth-hero-content h1 {
    max-width: 680px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 5.8vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.ic-auth-hero-content p {
    max-width: 560px;
    margin: 0;
    color: var(--ic-muted);
    font-size: 18px;
    line-height: 1.65;
}

.ic-auth-preview {
    width: min(470px, 100%);
    margin-top: 46px;
    padding: 18px;
    border: 1px solid var(--ic-border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    box-shadow: var(--ic-shadow);
    backdrop-filter: blur(22px);
}

.ic-preview-top {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
}

.ic-preview-top span {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
}

.ic-preview-line {
    height: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.ic-preview-line.wide {
    width: 62%;
}

.ic-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.ic-preview-grid div,
.ic-preview-card {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.ic-preview-grid div {
    padding: 14px;
}

.ic-preview-grid b {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    letter-spacing: -0.05em;
}

.ic-preview-grid span,
.ic-preview-card span {
    color: var(--ic-muted-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ic-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    margin-top: 10px;
}

.ic-preview-card.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(236, 72, 153, 0.30));
    border-color: rgba(255, 255, 255, 0.22);
}

.ic-preview-card b {
    font-size: 14px;
}

.ic-auth-panel {
    display: flex;
    justify-content: flex-end;
}

.ic-auth-card {
    width: min(460px, 100%);
    padding: 34px;
    border: 1px solid var(--ic-border);
    border-radius: 32px;
    background: rgba(8, 10, 24, 0.72);
    box-shadow: var(--ic-shadow);
    backdrop-filter: blur(28px);
}

.ic-auth-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.ic-auth-eyebrow {
    margin: 0 0 8px;
    color: var(--ic-accent-3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.ic-auth-card h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.ic-auth-link-top,
.ic-auth-bottom a {
    color: #f9a8d4;
    font-weight: 800;
    text-decoration: none;
}

.ic-auth-link-top:hover,
.ic-auth-bottom a:hover {
    color: white;
}

.ic-auth-muted {
    margin: 0 0 24px;
    color: var(--ic-muted);
    font-size: 15px;
    line-height: 1.55;
}

.ic-auth-alert {
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid var(--ic-error-border);
    border-radius: 16px;
    background: var(--ic-error-bg);
    color: var(--ic-error);
    font-size: 14px;
    line-height: 1.45;
}

.ic-auth-form {
    display: grid;
    gap: 15px;
}

.ic-auth-field {
    display: grid;
    gap: 8px;
}

.ic-auth-field span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 850;
}

.ic-auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.075);
    color: white;
    font: inherit;
    transition: 0.18s ease;
}

.ic-auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.ic-auth-field input:focus {
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
    background: rgba(255, 255, 255, 0.105);
}

.ic-password-wrap {
    position: relative;
}

.ic-password-wrap input {
    padding-right: 94px;
}

.ic-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ic-password-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.ic-auth-submit {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ic-accent), var(--ic-accent-2));
    color: white;
    font: inherit;
    font-weight: 950;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(124, 58, 237, 0.34);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ic-auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 22px 46px rgba(236, 72, 153, 0.28);
}

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

.ic-auth-bottom {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--ic-muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 940px) {
    .ic-auth-shell {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        padding: 28px 0 44px;
    }

    .ic-auth-brand {
        margin-bottom: 34px;
    }

    .ic-auth-hero-content h1 {
        font-size: clamp(36px, 10vw, 54px);
    }

    .ic-auth-hero-content p {
        font-size: 16px;
    }

    .ic-auth-preview {
        display: none;
    }

    .ic-auth-panel {
        justify-content: stretch;
    }

    .ic-auth-card {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ic-auth-shell {
        width: min(100% - 20px, 1180px);
        padding: 18px 0 28px;
    }

    .ic-auth-brand {
        gap: 10px;
        margin-bottom: 26px;
    }

    .ic-auth-logo {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .ic-auth-brand span {
        font-size: 12px;
    }

    .ic-auth-hero-content h1 {
        margin-top: 16px;
        font-size: 36px;
        line-height: 0.98;
    }

    .ic-auth-card {
        padding: 22px;
        border-radius: 24px;
    }

    .ic-auth-card-head {
        align-items: flex-start;
        gap: 12px;
    }

    .ic-auth-card h2 {
        font-size: 28px;
    }

    .ic-auth-link-top {
        font-size: 13px;
    }

    .ic-auth-field input,
    .ic-auth-submit {
        height: 50px;
        border-radius: 15px;
    }
}
