+:root {
    --tsgj-auth-ink: #202426;
    --tsgj-auth-muted: #696d6e;
    --tsgj-auth-paper: #f6f3ee;
    --tsgj-auth-line: #d9d2c8;
    --tsgj-auth-accent: #a47b55;
}

.tsgj-auth {
    background: var(--tsgj-auth-paper);
    color: var(--tsgj-auth-ink);
    min-height: 760px;
}

.tsgj-auth__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
    min-height: min(860px, calc(100vh - 72px));
}

.tsgj-auth__visual {
    align-items: stretch;
    background-image: linear-gradient(180deg, rgba(16, 22, 24, .22) 0%, rgba(13, 18, 20, .78) 100%), var(--tsgj-auth-background);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 720px;
    overflow: hidden;
    padding: clamp(38px, 5.2vw, 76px);
    position: relative;
}

.tsgj-auth__visual::after {
    border: 1px solid rgba(255, 255, 255, .24);
    content: "";
    height: 330px;
    position: absolute;
    right: -150px;
    top: -172px;
    transform: rotate(34deg);
    width: 330px;
}

.tsgj-auth__visual-logo {
    display: inline-flex;
    position: relative;
    width: clamp(170px, 20vw, 260px);
    z-index: 1;
}

.tsgj-auth__visual-logo img {
    height: auto;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    width: 100%;
}

.tsgj-auth__visual-copy {
    max-width: 610px;
    position: relative;
    z-index: 1;
}

.tsgj-auth__visual-copy > span,
.tsgj-auth__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.tsgj-auth__visual-copy > span {
    color: #d7b994;
    margin-bottom: 18px;
}

.tsgj-auth__visual-copy h2 {
    color: #fff;
    font-family: "Cormorant Garamond", "Noto Serif KR", serif;
    font-size: clamp(38px, 4.3vw, 66px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0 0 38px;
}

.tsgj-auth__visual-copy ol {
    border-top: 1px solid rgba(255, 255, 255, .26);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tsgj-auth__visual-copy li {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .17);
    color: rgba(255, 255, 255, .84);
    display: flex;
    font-size: 14px;
    gap: 16px;
    padding: 13px 0;
}

.tsgj-auth__visual-copy li span {
    color: #d7b994;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
}

.tsgj-auth__visual-note {
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
    letter-spacing: .2em;
    margin: 28px 0 0;
    position: relative;
    z-index: 1;
}

.tsgj-auth__panel {
    align-items: center;
    background: var(--tsgj-auth-paper);
    display: flex;
    justify-content: center;
    padding: clamp(46px, 6vw, 92px) clamp(28px, 6vw, 92px);
}

.tsgj-auth__panel-inner {
    max-width: 520px;
    width: 100%;
}

.tsgj-auth__mobile-logo {
    display: none;
}

.tsgj-auth__eyebrow {
    color: var(--tsgj-auth-accent);
    margin-bottom: 13px;
}

.tsgj-auth__panel h1 {
    color: var(--tsgj-auth-ink);
    font-family: "Cormorant Garamond", "Noto Serif KR", serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0 0 18px;
}

.tsgj-auth__description {
    color: var(--tsgj-auth-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 32px;
    max-width: 460px;
}

.tsgj-auth__notice {
    border-left: 3px solid var(--tsgj-auth-accent);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 13px 15px;
}

.tsgj-auth__notice--success {
    background: #eaf2ec;
    border-color: #53785b;
    color: #36513c;
}

.tsgj-auth__notice--error {
    background: #f7eae7;
    border-color: #9c5148;
    color: #753c35;
}

.tsgj-auth .auth-card,
.tsgj-auth .auth-card__body,
.tsgj-auth .card,
.tsgj-auth .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tsgj-auth__form-wrap .auth-card__header,
.tsgj-auth__form-wrap .auth-card__banner,
.tsgj-auth__form-wrap .auth-card__icon {
    display: none !important;
}

.tsgj-auth__form .mb-3,
.tsgj-auth__form .form-group {
    margin-bottom: 19px !important;
}

.tsgj-auth__form .form-label {
    color: #383c3e;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0 0 8px;
}

.tsgj-auth__form .form-control {
    background-color: rgba(255, 255, 255, .64) !important;
    border: 1px solid var(--tsgj-auth-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--tsgj-auth-ink) !important;
    font-size: 15px;
    height: 56px;
    line-height: 56px;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    transition: border-color .2s ease, background-color .2s ease;
}

.tsgj-auth__form .form-control::placeholder {
    color: #9a9995;
}

.tsgj-auth__form .form-control:focus {
    background: #fff !important;
    border-color: var(--tsgj-auth-accent) !important;
    outline: 2px solid rgba(164, 123, 85, .13) !important;
    outline-offset: 0;
}

.tsgj-auth__form .auth-input-icon {
    align-items: center;
    color: #92775e;
    display: flex;
    height: 56px;
    justify-content: center;
    pointer-events: none;
}

.tsgj-auth__form .invalid-feedback {
    color: #a3453c;
    font-size: 12px;
    margin-top: 6px;
}

.tsgj-auth__form .row.g-0 {
    align-items: center;
    margin-bottom: 22px !important;
}

.tsgj-auth__form .form-check {
    align-items: center;
    display: flex;
    gap: 8px;
    min-height: 24px;
}

.tsgj-auth__form .form-check-input {
    border-color: #aaa39a;
    border-radius: 2px;
    box-shadow: none;
    height: 18px;
    margin: 0;
    width: 18px;
}

.tsgj-auth__form .form-check-input:checked {
    background-color: var(--tsgj-auth-accent);
    border-color: var(--tsgj-auth-accent);
}

.tsgj-auth__form .form-check-label,
.tsgj-auth__form .row.g-0 a,
.tsgj-auth__form .mt-3.text-center {
    color: var(--tsgj-auth-muted);
    font-size: 13px;
}

.tsgj-auth__form a {
    color: #76583e;
    text-underline-offset: 3px;
}

.tsgj-auth__form .btn-auth-submit,
.tsgj-auth__form button[type="submit"] {
    align-items: center;
    background: #242a2c !important;
    border: 1px solid #242a2c !important;
    border-radius: 0 !important;
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    height: 58px;
    justify-content: center;
    letter-spacing: .08em;
    margin-top: 4px;
    padding: 0 28px;
    transition: background-color .2s ease, border-color .2s ease;
    width: 100%;
}

.tsgj-auth__form .btn-auth-submit:hover,
.tsgj-auth__form button[type="submit"]:hover {
    background: var(--tsgj-auth-accent) !important;
    border-color: var(--tsgj-auth-accent) !important;
}

.tsgj-auth__form .btn-auth-submit:focus-visible,
.tsgj-auth__form button[type="submit"]:focus-visible,
.tsgj-auth a:focus-visible {
    outline: 2px solid var(--tsgj-auth-accent);
    outline-offset: 3px;
}

.tsgj-auth__form .login-options {
    border-top: 1px solid var(--tsgj-auth-line);
    margin-top: 24px;
    padding-top: 22px;
}

.tsgj-auth__trust {
    align-items: center;
    border-top: 1px solid var(--tsgj-auth-line);
    color: #888781;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
}

.tsgj-auth__trust span,
.tsgj-auth__trust a {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 7px;
}

.tsgj-auth__trust a:hover {
    color: var(--tsgj-auth-accent);
}

@media (max-width: 991px) {
    .tsgj-auth__shell {
        grid-template-columns: 1fr;
    }

    .tsgj-auth__visual {
        min-height: 390px;
        padding: 38px clamp(24px, 7vw, 62px);
    }

    .tsgj-auth__visual-logo,
    .tsgj-auth__visual-note {
        display: none;
    }

    .tsgj-auth__visual-copy h2 {
        font-size: clamp(36px, 7vw, 52px);
        margin-bottom: 24px;
    }

    .tsgj-auth__visual-copy ol {
        max-width: 520px;
    }

    .tsgj-auth__panel {
        padding: 54px clamp(24px, 8vw, 76px) 70px;
    }

    .tsgj-auth__mobile-logo {
        display: inline-flex;
        margin-bottom: 42px;
        width: 180px;
    }

    .tsgj-auth__mobile-logo img {
        height: auto;
        max-height: 64px;
        object-fit: contain;
        object-position: left center;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .tsgj-auth__visual {
        min-height: 330px;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .tsgj-auth__visual-copy h2 {
        font-size: 35px;
    }

    .tsgj-auth__visual-copy li {
        font-size: 12px;
        padding: 10px 0;
    }

    .tsgj-auth__panel {
        padding: 42px 21px 58px;
    }

    .tsgj-auth__panel h1 {
        font-size: 39px;
    }

    .tsgj-auth__mobile-logo {
        margin-bottom: 34px;
        width: 155px;
    }

    .tsgj-auth__trust {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .tsgj-auth__form .row.g-0 > .col-6 {
        width: 100%;
    }

    .tsgj-auth__form .row.g-0 > .text-end {
        margin-top: 10px;
        text-align: left !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsgj-auth *,
    .tsgj-auth *::before,
    .tsgj-auth *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

