.auth-intake-page .auth-intake-shell {
    width: min(94vw, 1380px);
    max-width: none;
    padding-top: clamp(1.5rem, 4vw, 4rem);
}

.intake-scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    border: 1px solid var(--border-strong);
    background: var(--hj-ink);
    box-shadow: var(--shadow-lg);
}

.intake-scene--login {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.intake-sheet {
    position: relative;
    min-width: 0;
    padding: clamp(1.4rem, 4vw, 4rem);
    color: #28231e;
    background-color: var(--hj-paper);
    background-image: url("../images/hanji-grain.webp");
    background-size: 720px 720px;
}

.intake-scene--login .intake-sheet {
    grid-column: 2;
}

.intake-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 3px double rgba(62, 48, 33, 0.52);
}

.intake-file-no {
    display: block;
    margin-bottom: 0.65rem;
    color: #756857;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.intake-head h1 {
    margin: 0;
    color: #17130f;
    font-family: var(--font-human);
    font-size: clamp(2.4rem, 6.4vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.05;
}

.intake-head p {
    max-width: 58ch;
    margin: 0.9rem 0 0;
    color: #655a4c;
    font-size: 0.96rem;
    line-height: 1.7;
}

.intake-head-mark {
    min-width: 5.4rem;
    padding: 0.45rem 0.55rem;
    border: 2px solid #7d0b1c;
    color: var(--hj-seal);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    transform: rotate(3deg);
}

.intake-provider {
    margin: 1.4rem 0 0;
    padding: 0.9rem 1rem;
    border-left: 5px solid var(--hj-human);
    background: rgba(36, 77, 69, 0.08);
    color: #394f48;
    font-size: 0.9rem;
}

.intake-provider strong {
    color: #173b34;
}

.intake-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.intake-social .social-btn {
    min-height: 3.35rem;
    padding: 0.8rem 1rem;
    font-family: "IBM Plex Sans KR", sans-serif;
    font-weight: 600;
    box-shadow: none;
}

.intake-social .social-btn--google {
    border: 1px solid #747775;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
}

.intake-social .social-btn--kakao {
    border: 0;
    border-radius: 12px;
    background: #fee500;
    color: rgba(0, 0, 0, 0.85);
}

.intake-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.65rem 0 0;
    color: #7d7162;
    font-size: 0.76rem;
    font-weight: 700;
}

.intake-divider::before,
.intake-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(62, 48, 33, 0.32);
}

.intake-form {
    margin-top: 1.5rem;
}

.intake-section {
    display: grid;
    grid-template-columns: minmax(110px, 0.22fr) minmax(0, 0.78fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(62, 48, 33, 0.28);
}

.intake-section:first-of-type {
    border-top: 0;
    padding-top: 0.25rem;
}

.intake-section-label {
    margin: 0;
    color: #443a30;
    font-family: var(--font-human);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.intake-section-label span {
    display: block;
    margin-top: 0.35rem;
    color: #8b7c6a;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.intake-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.intake-field {
    min-width: 0;
}

.intake-field--full {
    grid-column: 1 / -1;
}

.intake-field label,
.intake-form label {
    display: block;
    margin: 0 0 0.42rem;
    color: #473c31;
    font-size: 0.82rem;
    font-weight: 700;
}

.intake-form input[type="text"],
.intake-form input[type="password"],
.intake-form input[type="email"],
.intake-form input[type="tel"] {
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-bottom: 1.5px solid rgba(62, 48, 33, 0.54);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    color: #211c17;
    font-size: 1rem;
}

.intake-form input:focus {
    border-color: var(--hj-seal);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 3px 0 rgba(200, 16, 46, 0.14);
}

.intake-form input[readonly] {
    border-bottom-style: double;
    color: #655a4c;
    cursor: not-allowed;
}

.intake-form .helptext {
    color: #786c5d;
    line-height: 1.55;
}

.intake-form .errorlist {
    margin: 0.45rem 0 0;
    padding: 0.6rem 0.7rem;
    border-left: 4px solid var(--hj-seal);
    background: rgba(200, 16, 46, 0.07);
    color: #8e1527;
}

.intake-form .errorlist li {
    list-style: none;
}

.intake-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 3px double rgba(62, 48, 33, 0.5);
}

.intake-submit-note {
    max-width: 44ch;
    margin: 0;
    color: #786c5d;
    font-size: 0.78rem;
    line-height: 1.55;
}

.intake-submit .btn {
    min-width: min(100%, 14rem);
    min-height: 3.25rem;
}

.intake-foot {
    margin: 1.2rem 0 0;
    color: #6f6456;
    font-size: 0.86rem;
}

.intake-foot a {
    color: #8f1024;
    font-weight: 700;
}

.intake-stub {
    position: sticky;
    top: 92px;
    min-height: 34rem;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border-left: 2px dashed rgba(247, 241, 228, 0.32);
    color: #eee6d7;
    background-color: var(--hj-ink);
}

.intake-scene--login .intake-stub {
    grid-column: 1;
    grid-row: 1;
    border-right: 2px dashed rgba(247, 241, 228, 0.32);
    border-left: 0;
}

.stub-number {
    display: block;
    margin-bottom: 2rem;
    color: #777f8e;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.stub-seal {
    display: block;
    width: 4.6rem;
    height: 4.6rem;
    margin-bottom: 1.5rem;
    border-radius: 3px;
    transform: rotate(-4deg);
}

.intake-stub h2 {
    margin: 0 0 0.8rem;
    color: #fff8eb;
    font-family: var(--font-human);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.25;
}

.intake-stub > p {
    color: #aaa698;
    font-size: 0.9rem;
    line-height: 1.7;
}

.stub-ledger {
    margin: 2rem 0 0;
    padding: 0;
    border-top: 1px solid rgba(247, 241, 228, 0.2);
}

.stub-ledger li {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(247, 241, 228, 0.13);
    color: #c8c1b3;
    font-size: 0.86rem;
    line-height: 1.55;
    list-style: none;
}

.stub-ledger b {
    color: #ff6b80;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
}

.stub-ledger strong {
    display: block;
    margin-bottom: 0.1rem;
    color: #f5efe3;
}

.auth-status-sheet {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3.7rem);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-status-sheet h1 {
    font-size: clamp(2.1rem, 7vw, 4.2rem);
}

.auth-code-input input {
    min-height: 4.4rem;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: clamp(1.65rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.32em;
    text-align: center;
}

.auth-action-stack {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.auth-action-stack form {
    margin: 0;
}

.auth-action-stack .btn {
    width: 100%;
}

.allauth-content {
    text-align: left;
}

.allauth-content > h1 {
    font-size: clamp(2rem, 7vw, 4.1rem);
}

.allauth-content > p {
    color: var(--text-dim);
}

.allauth-content form {
    margin-top: 1.2rem;
}

.allauth-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
}

.allauth-content button[type="submit"] {
    display: inline-flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    border: 1px solid var(--hj-seal-dark);
    border-radius: 3px;
    background: var(--hj-seal);
    color: #fff;
    font: 700 0.95rem/1 var(--font-body);
    box-shadow: 0 4px 0 var(--hj-seal-dark);
    cursor: pointer;
}

.allauth-content ul {
    padding-left: 1.2rem;
}

.allauth-content a {
    color: var(--accent);
}

.allauth-messages {
    margin-bottom: 1.2rem;
}

@media (max-width: 980px) {
    .intake-scene,
    .intake-scene--login {
        grid-template-columns: 1fr;
    }

    .intake-scene--login .intake-sheet,
    .intake-scene--login .intake-stub {
        grid-column: 1;
    }

    .intake-scene--login .intake-stub {
        grid-row: auto;
    }

    .intake-stub {
        position: static;
        min-height: 0;
        border-top: 2px dashed rgba(247, 241, 228, 0.32);
        border-right: 0;
        border-left: 0;
    }

    .stub-ledger {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stub-ledger li {
        grid-template-columns: 1fr;
        padding-right: 0.8rem;
    }
}

@media (max-width: 640px) {
    .auth-intake-page .auth-intake-shell {
        width: min(100% - 0.8rem, 1380px);
        padding-top: 0.6rem;
    }

    .intake-sheet {
        padding: 1.35rem 1.05rem 1.5rem;
    }

    .intake-head {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .intake-head h1 {
        font-size: clamp(2.25rem, 14vw, 3.7rem);
    }

    .intake-head-mark {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 4.2rem;
        font-size: 0.66rem;
    }

    .intake-social,
    .intake-fields {
        grid-template-columns: 1fr;
    }

    .intake-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .intake-section-label span {
        display: inline;
        margin-left: 0.4rem;
    }

    .intake-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .intake-submit .btn {
        width: 100%;
    }

    .stub-ledger {
        grid-template-columns: 1fr;
    }

    .intake-stub {
        padding: 1.4rem 1.1rem;
    }
}
