﻿.create-page {
    background: var(--bg-light);
    color: var(--text-color);
}

.create-hero {
    position: relative;
    padding: 156px 0 34px;
    background:
        radial-gradient(circle at 16% 20%, rgba(60, 160, 193, 0.1), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(63, 160, 60, 0.12), transparent 34%);
}

.create-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    align-items: center;
    gap: 2rem;
}

.create-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -1.3px;
    margin-bottom: 1rem;
}

.create-hero-copy .highlight {
    color: transparent;
    background: linear-gradient(120deg, #2b99bd 0%, #4f9d3a 65%, #3fa03c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.create-hero-copy .highlight::after {
    content: none;
}

.create-hero-copy p {
    margin-bottom: 1.2rem;
    max-width: 60ch;
}

.create-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.create-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
}

.create-hero-pills span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
}

.create-hero-media {
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.create-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 34%, rgba(15, 23, 42, 0.62) 100%);
}

.create-hero-media figcaption {
    position: absolute;
    z-index: 2;
    left: 1.1rem;
    bottom: 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.create-main-section {
    padding-top: 1.6rem;
}

.create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
    gap: 1.2rem;
    align-items: start;
}

.create-form-shell,
.create-side-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.create-form-shell {
    position: relative;
    overflow: hidden;
    padding: 1.3rem;
}

.create-form-shell::before {
    content: '';
    position: absolute;
    top: -118px;
    right: -136px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.12), transparent 70%);
    pointer-events: none;
}

.form-head {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.form-head h2 {
    margin-bottom: 0.35rem;
}

.form-head p {
    margin-bottom: 0.55rem;
}

.auth-status {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border: 1px solid rgba(22, 101, 52, 0.25);
}

.prefill-notice {
    margin-top: 0.4rem;
    padding: 0.6rem 0.72rem;
    border-radius: 12px;
    background: #f0f9ff;
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #0c4a6e;
    font-size: 0.86rem;
    font-weight: 600;
}

.auth-gate {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    padding: 1.4rem;
}

.auth-gate-card {
    width: min(460px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    padding: 1.1rem;
    text-align: center;
}

.auth-gate-card h3 {
    margin-bottom: 0.35rem;
}

.auth-gate-card p {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.auth-gate-actions {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.create-page.auth-required .auth-gate {
    display: flex;
}

.create-page.auth-required .create-form {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.create-page.auth-corporate-blocked .auth-status {
    color: #92400e;
    background: #fef3c7;
    border-color: rgba(146, 64, 14, 0.35);
}

.create-page.auth-corporate-blocked .auth-gate-card {
    border-color: rgba(146, 64, 14, 0.22);
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.12);
}

.create-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.9rem;
}

.create-form .form-row {
    display: grid;
    gap: 0.8rem;
}

.create-form .form-row.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.create-form .form-group {
    margin: 0;
}

.create-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.88);
}

.create-form input,
.create-form select,
.create-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.13);
    background: #ffffff;
    padding: 0.84rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-form textarea {
    resize: vertical;
    min-height: 140px;
}

.create-form input:focus,
.create-form select:focus,
.create-form textarea:focus {
    outline: 0;
    border-color: rgba(60, 160, 193, 0.48);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.14);
}

.consent-check {
    margin-top: 0.1rem;
}

.form-message {
    margin: 0;
    min-height: 1.5rem;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.72);
}

.form-message.success {
    color: #166534;
}

.form-message.error {
    color: #991b1b;
}

.create-side-panel {
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.side-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    padding: 0.95rem;
}

.side-card h3 {
    font-size: 1.06rem;
    margin-bottom: 0.55rem;
}

.side-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.side-card li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.92rem;
    color: rgba(15, 23, 42, 0.72);
}

.side-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
}

@media (max-width: 1200px) {
    .create-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .create-hero {
        padding-top: 132px;
    }

    .create-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .create-hero-media {
        max-width: 760px;
    }

    .create-form .form-row.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .create-hero {
        padding-top: 108px;
    }

    .create-hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .auth-gate-actions {
        flex-direction: column;
    }

    .auth-gate-actions .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .create-form input,
    .create-form select,
    .create-form textarea {
        transition: none;
    }
}
