/* ===== Join: Scope & Theme ===== */
:root {
    --join-panel-height: 860px;
}

.join {
    --join-primary: var(--main-green);
    --join-muted: #6b7280;
    --join-border: #e5e7eb;
    --join-bg: #ffffff;
    --join-danger: #ef4444;
    --join-success: #1A943F;
    --join-radius: 12px;
}

.join-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    gap: 48px;
    overflow: hidden;
    overflow-x: hidden;
}

.app-main.join-main {
    padding: calc(var(--header-height-mobile) + 6px) 0 0;
}

@media (min-width: 769px) {
    .app-main.join-main {
        padding: var(--header-height) 0 0;
    }
}

.join-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    width: 320px;
    max-width: 320px;
    position: absolute;
    top: max(24px);
    left: max(110px);
    z-index: 2;
}

.join-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 23px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-slate);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(36, 49, 108, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    align-self: flex-start;
}

.join-back-to-login:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(36, 49, 108, 0.28);
}

.join-back-to-login:focus-visible {
    outline: 3px solid rgba(26, 148, 63, 0.35);
    outline-offset: 3px;
}

.join-side-card {
    position: relative;
    padding: 32px 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(45, 139, 110, 0.1);
    color: #1f2a37;
    overflow: hidden;
}

.join-side-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
    var(--main-green) 0%,
    var(--main-green-dark) 20%,
    var(--accent-coral) 45%,
    #FF9F6D 60%,
    var(--accent-purple) 80%,
    #6F5CC2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    background-size: 200% 100%;
    animation: join-side-pan 6s ease-in-out infinite alternate;
}

@keyframes join-side-pan {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.join-side-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #245b4c;
}

.join-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    font-size: 14px;
    color: #2f3b4c;
}

.join-layout {
    position: relative;
    width: 100%;
    max-width: 1024px;
    min-height: min(var(--join-panel-height), calc(100vh - 48px));
    height: min(var(--join-panel-height), calc(100vh - 48px));
    margin: 0 auto;
    z-index: 1;
}

.join-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 100%);
    height: min(var(--join-panel-height), calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    padding: 40px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.join-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-dark) 20%, var(--accent-coral) 50%, var(--accent-purple) 80%, #6F5CC2 100%);
    background-size: 200% 100%;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    pointer-events: none;
    animation: join-accent-pan 3.5s ease-in-out infinite alternate;
}

@keyframes join-accent-pan {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.join-header {
    gap: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.join-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}

.join-subtitle {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

/* Steps */
.join-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    position: relative;
    flex-shrink: 0;
    --join-progress-scale: 0;
}

.join-steps::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 19px;
    height: 2px;
    background: var(--bg-slate-light);
    z-index: 0;
}

.join-steps::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 19px;
    height: 2px;
    background: linear-gradient(90deg, rgba(76, 175, 147, 0.9) 0%, rgba(76, 175, 147, 0.6) 55%, rgba(76, 175, 147, 0.2) 100%);
    z-index: 0;
    transform-origin: left center;
    transform: scaleX(var(--join-progress-scale));
    transition: transform 0.3s ease;
}

.join-step {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    flex-direction: column;
}

.join-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--text-slate);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--bg-slate-light)
}

.join-step-label {
    font-size: 14px;
    color: var(--join-muted);
}

.join-step--active .join-step-badge {
    background:  transparent linear-gradient(134deg, var(--main-green) 0%, var(--main-green-dark) 100%) 0% 0% no-repeat padding-box;;
    color: #fff;
    box-shadow: none;
}

.join-step--active .join-step-label {
    color: #111827;
    font-weight: 600;
}

.join-step--completed .join-step-badge {
    background: var(--join-primary);
    color: #fff;
    border-color: var(--join-primary);
    box-shadow: none;
}

.join-step--completed .join-step-label {
    color: #1f2937;
    font-weight: 600;
}

/* Form grid */
.join-row {
    margin-bottom: 25px;
}

.join-step-pane {
    display: flex;
    flex-direction: column;
    min-height: 90%;
}

.join-form {
    grid-template-columns: 1fr;
    gap: 16px 20px;
    margin-top: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

.join-row--full {
    grid-column: 1 / -1;
}

.join-label {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
    font-weight: 600;
}

.join-req {
    color: var(--accent-coral);
    margin-left: 4px;
    font-weight: 500;
}

.join-input, .join-select, .join-textarea {
    width: 100%;
    border: 1px solid var(--join-border);
    border-radius: 10px;
    padding: 13px 12px;
    max-width: 700px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.join-input-group {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.join-input-group .join-input {
    padding-right: 132px;
}

.join-input-group-button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 6px 14px;
}

.join-input-group-button.btn {
    height: auto;
}

@media (max-width: 520px) {
    .join-input-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .join-input-group .join-input {
        padding-right: 12px;
    }

    .join-input-group-button {
        position: static;
        transform: none;
        width: 100%;
    }
}

.join-textarea {
    min-height: 110px;
    resize: vertical;
}

.join-input:focus, .join-select:focus, .join-textarea:focus {
    outline: none;
    border-color: var(--join-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.join-help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--join-muted);
}

.join-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--join-danger);
}

.join-success {
    margin-top: 6px;
    font-size: 12px;
    color: var(--join-success);
}

.join-invalid .join-input, .join-invalid .join-select, .join-invalid .join-textarea {
    border-color: var(--join-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

/* 체크박스 커스텀 스타일 - 체크 상태 시각화 */
.join-checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: default;
}

.join-checkline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    /* 기본 체크박스 숨기고 커스텀 스타일 적용 */
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--text-slate);
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.join-checkline input[type="checkbox"]:hover {
    border-color: var(--join-primary);
}

.join-checkline input[type="checkbox"]:checked {
    background: var(--join-primary);
    border-color: var(--join-primary);
}

.join-checkline input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.join-checkline input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.join-checkline label {
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    display: block;
    flex: 1 1 auto;
    word-break: keep-all;
}

.join-divider {
    height: 1px;
    background: var(--join-border);
    grid-column: 1 / -1;
    margin: 6px 0 8px;
}

.join-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: auto;
    padding-top: 16px;
}

.join-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    gap: 20px;
    min-height: 420px;
}

.join-complete-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-complete-emoji {
    font-size: 74px;
    line-height: 1;
}

.join-complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.join-complete-subtitle {
    font-size: 15px;
    color: var(--join-muted);
    margin: 0;
}

.join-complete-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.join-complete-actions .btn-basic {
    min-width: 160px;
}

@media (max-width: 560px) {
    .join-complete {
        padding: 60px 16px;
        min-height: 340px;
        gap: 16px;
    }

    .join-complete-title {
        font-size: 20px;
    }

    .join-complete-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .join-complete-actions {
        flex-direction: column;
        width: 100%;
    }

    .join-complete-actions .btn-basic {
        width: 100%;
        min-width: 0;
    }
}

.btn-basic.join-next-button {

    background: #f3f4f6;
    color: #9ca3af;
    cursor: pointer;
    opacity: 0.75;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-basic.join-next-button:disabled {
    pointer-events: none;
}

.btn-basic.join-next-button.is-active {
    background: transparent linear-gradient(90deg, var(--main-green) 0%, var(--main-green-dark) 100%) 0% 0% no-repeat padding-box;
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 8px 20px rgba(76, 175, 147, 0.24);
}

.btn-basic.join-next-button.is-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(76, 175, 147, 0.28);
}

/* Terms box */
.join-terms-wrap {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.join-terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.join-terms-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.join-terms-actions .join-req {
    margin-left: 0;
}

.join-terms-title {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.join-terms-toggle {
    border: none;
    background: transparent;
    color: var(--text-slate);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: underline;
}

.join-terms-toggle:hover {
    background: transparent;
    transform: translateY(-1px);
}

.join-terms-wrap.is-expanded .join-terms-toggle {
    background: transparent;
    color: var(--text-slate);
}

.join-terms-toggle:focus-visible {
    outline: 2px solid rgba(26, 148, 63, 0.45);
    outline-offset: 2px;
}

.join-terms {
    border: 1px solid var(--join-border);
    border-radius: var(--join-radius);
    background: #f9fafb;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 10px;
    position: relative;
}

.join-terms::after {
    content: none;
}

.join-terms-content {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.join-terms-content[aria-hidden="false"] {
    margin-top: 10px;
    max-height: 320px;
    overflow: auto;
    opacity: 1;
}

.join-terms-wrap.is-expanded .join-terms-content {
    margin-top: 10px;
    max-height: 320px;
    overflow: auto;
    opacity: 1;
}

@media (max-width: 1140px) {
    .join-page {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px 20px 32px;
        gap: 32px;
    }

    .join-side {
        position: static;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 24px;
        align-items: center;
        text-align: center;
    }

    .join-side-card {
        width: 100%;
    }

    .join-layout {
        max-width: 100%;
        min-height: unset;
        height: auto;
    }

    .join-container {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        height: auto;
        width: 100%;
        max-width: 640px;
        padding: 36px 30px;
        margin: 0 auto;
        max-height: calc(100vh - 48px);
        overflow: hidden;
    }

    .join-header {
        text-align: center;
    }

    .join-subtitle {
        font-size: 14px;
    }

    .join-steps {
        gap: 16px;
    }

    .join-form {
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .join-form {
        grid-template-columns: 1fr;
    }

    .join-steps::before {
        left: 22px;
        right: 22px;
        top: 19px;
    }
    .join-steps::after {
        left: 22px;
        right: 22px;
        top: 19px;
    }

    .join-container {
        padding: 32px 24px;
    }

    .join-side {
        max-width: 360px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .join-side-card {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .join-page {
        padding: 16px 16px 24px;
        gap: 24px;
    }

    .join-container {
        padding: 28px 20px;
        border-radius: 22px;
        max-height: calc(100vh - 32px);
        overflow: hidden;
        top: 0;
        left: 0;
        transform: none;
    }

    .join-steps {
        gap: 12px;
    }

    .join-steps::before {
        left: 18px;
        right: 18px;
    }
    .join-steps::after {
        left: 18px;
        right: 18px;
    }

    .join-side-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .join-side {
        padding: 0 12px;
    }

    .join-terms-actions {
        gap: 6px;
    }

    .join-terms-actions .join-req {
        font-size: 12px;
    }

    .join-terms-toggle {
        padding: 4px 8px;
        font-size: 12px;
    }
}

.join-terms--required {
    border: 2px solid var(--join-primary);
}

.join-agree-title {
    margin: 0px;
}

.join-agree-sub-title {
    font-size: 14px;
    color: var(--text-slate);
}

.join-agree-box--hidden {
    display: none;
}

.side-list-title {
    padding-left: 10px;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.side-list-content {
    font-size: 14px;
    color: var(--text-slate);
}

.join-side-list li {
    background-color: var(--bg-slate-light);
    border-radius: 12px;
    padding: 16px 23px;

}
.join-email-req{
    color:var(--main-green);
}

.btn-join-consent{
    color: var(--main-green);
    background-color: var(--bg-green-light);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    border: none;
    min-width: 103px;
    cursor: pointer;

}

.join-complete-card{
    background-color: var(--bg-slate-light);
    width: 100%;
    border-radius: 20px;
}

.join-complete-card-type, .join-complete-card-email{
    border-bottom: 1px solid var(--text-slate)2E;
}
.join-complete-card-type, .join-complete-card-email, .join-complete-card-name{
    padding :17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
