/* ═══════════════════════════════════════════════════════════════
   WKC Join / Register Page
   ═══════════════════════════════════════════════════════════════ */

.wkc-join {
    background: #7EC8E8;
    min-height: 100vh;
    font-family: var(--wkc-font);
    color: var(--wkc-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wkc-header__signin {
    font-size: 12px;
    font-weight: 700;
    color: var(--wkc-navy);
    text-decoration: none;
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.wkc-header__signin:hover {
    color: var(--wkc-green);
}

/* Sky background */
.join-main {
    position: relative;
    padding-bottom: 0;
}

.join-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #87CEEB 0%, #B8E2F8 35%, #D4EDFC 70%, #E8F6FD 100%);
    pointer-events: none;
}

.join-sky__clouds {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 200px at 20% 30%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 500px 180px at 70% 20%, rgba(255,255,255,0.6) 0%, transparent 65%),
        radial-gradient(ellipse 400px 150px at 50% 60%, rgba(255,255,255,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 700px 220px at 85% 70%, rgba(255,255,255,0.55) 0%, transparent 70%);
}

.join-sky__map {
    position: absolute;
    left: 0;
    top: 10%;
    width: 45%;
    height: 80%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cg fill='%234A90C2' opacity='0.12'%3E%3Ccircle cx='80' cy='60' r='3'/%3E%3Ccircle cx='95' cy='55' r='3'/%3E%3Ccircle cx='110' cy='58' r='3'/%3E%3Ccircle cx='125' cy='62' r='3'/%3E%3Ccircle cx='140' cy='55' r='3'/%3E%3Ccircle cx='155' cy='60' r='3'/%3E%3Ccircle cx='170' cy='65' r='3'/%3E%3Ccircle cx='185' cy='58' r='3'/%3E%3Ccircle cx='200' cy='55' r='3'/%3E%3Ccircle cx='70' cy='80' r='3'/%3E%3Ccircle cx='85' cy='85' r='3'/%3E%3Ccircle cx='100' cy='78' r='3'/%3E%3Ccircle cx='115' cy='82' r='3'/%3E%3Ccircle cx='130' cy='88' r='3'/%3E%3Ccircle cx='145' cy='75' r='3'/%3E%3Ccircle cx='160' cy='80' r='3'/%3E%3Ccircle cx='175' cy='85' r='3'/%3E%3Ccircle cx='190' cy='78' r='3'/%3E%3Ccircle cx='205' cy='82' r='3'/%3E%3Ccircle cx='90' cy='110' r='3'/%3E%3Ccircle cx='105' cy='115' r='3'/%3E%3Ccircle cx='120' cy='108' r='3'/%3E%3Ccircle cx='135' cy='112' r='3'/%3E%3Ccircle cx='150' cy='118' r='3'/%3E%3Ccircle cx='165' cy='105' r='3'/%3E%3Ccircle cx='180' cy='110' r='3'/%3E%3Ccircle cx='60' cy='140' r='3'/%3E%3Ccircle cx='75' cy='145' r='3'/%3E%3Ccircle cx='90' cy='138' r='3'/%3E%3Ccircle cx='105' cy='142' r='3'/%3E%3Ccircle cx='120' cy='148' r='3'/%3E%3Ccircle cx='135' cy='135' r='3'/%3E%3Ccircle cx='150' cy='140' r='3'/%3E%3Ccircle cx='165' cy='145' r='3'/%3E%3Ccircle cx='180' cy='138' r='3'/%3E%3Ccircle cx='195' cy='142' r='3'/%3E%3Ccircle cx='210' cy='148' r='3'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
    opacity: 0.8;
}

.join-main .wkc-container {
    position: relative;
    z-index: 1;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Hero banner */
.join-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 36px;
    padding: 0 16px;
}

.join-hero__text h1 {
    font-size: clamp(1.1rem, 2.8vw, 1.65rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--wkc-navy);
    line-height: 1.25;
    margin-bottom: 8px;
}

.join-hero__tag {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--wkc-green);
    margin-bottom: 4px;
}

.join-hero__sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--wkc-blue);
}

.join-hero__arrow {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Grid */
.join-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

/* Form card */
.join-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(12, 50, 96, 0.12);
    padding: 32px 36px 36px;
}

.join-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8EEF4;
}

.join-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wkc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.join-card__head h2 {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--wkc-blue);
    margin-bottom: 2px;
}

.join-card__head p {
    font-size: 12px;
    color: var(--wkc-blue-mid);
    font-weight: 500;
}

/* Form fields */
.join-field {
    margin-bottom: 18px;
}

.join-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--wkc-navy);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.join-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #D0DDE8;
    border-radius: 10px;
    background: #FAFCFE;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.join-input:focus-within {
    border-color: var(--wkc-blue-mid);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
    background: #fff;
}

.join-input.is-invalid {
    border-color: #EF4444;
}

.join-input__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--wkc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.join-input__icon svg {
    width: 18px !important;
    height: 18px !important;
}

.join-input input,
.join-input select,
.join-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 46px;
    font-family: var(--wkc-font);
    font-size: 14px;
    color: var(--wkc-navy);
    outline: none;
    appearance: none;
}

.join-input input::placeholder {
    color: #94A3B8;
}

.join-input--flex input {
    padding-left: 16px;
}

.join-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Phone split */
.join-phone {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

.join-phone__code {
    position: relative;
    border: 1.5px solid #D0DDE8;
    border-radius: 10px;
    background: #FAFCFE;
    display: flex;
    align-items: center;
}

.join-phone__code .join-input__icon {
    left: 10px;
}

.join-phone__code select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 8px 14px 36px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wkc-navy);
    outline: none;
    cursor: pointer;
    appearance: none;
}

/* Password toggle on join page */
.join-input .form-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    z-index: 2;
}

.join-input input.form-input--password {
    padding-right: 46px;
}

.join-hint {
    font-size: 11px;
    color: #64748B;
    margin-top: 6px;
    line-height: 1.4;
}

.join-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

/* Auth notice box */
.join-auth-box {
    display: flex;
    gap: 14px;
    background: #EBF5FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 24px 0 20px;
}

.join-auth-box__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wkc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.join-auth-box__icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #fff !important;
}

.join-auth-box strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--wkc-blue);
    margin-bottom: 4px;
}

.join-auth-box p {
    font-size: 12px;
    color: var(--wkc-text-muted);
    line-height: 1.55;
}

.join-auth-box p strong {
    display: inline;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--wkc-navy);
}

/* Terms */
.join-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--wkc-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.join-terms input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.join-terms__box {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E1;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.15s;
    position: relative;
}

.join-terms input:checked + .join-terms__box {
    background: var(--wkc-green);
    border-color: var(--wkc-green);
}

.join-terms input:checked + .join-terms__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.join-terms a {
    color: var(--wkc-blue-mid);
    font-weight: 700;
    text-decoration: none;
}

.join-terms a:hover {
    text-decoration: underline;
}

.join-terms.is-invalid .join-terms__box {
    border-color: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Submit */
.join-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--wkc-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--wkc-font);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    position: relative;
}

.join-submit:hover {
    background: #25a342;
    transform: translateY(-1px);
}

.join-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.join-submit.is-loading .join-submit__text {
    opacity: 0;
}

.join-submit.is-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: joinSpin 0.7s linear infinite;
    left: 50%;
    top: 50%;
    margin: -11px 0 0 -11px;
}

@keyframes joinSpin {
    to { transform: rotate(360deg); }
}

.join-signin {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--wkc-text-muted);
}

.join-signin a {
    color: var(--wkc-blue-mid);
    font-weight: 700;
    text-decoration: none;
}

/* Benefits sidebar */
.join-benefits {
    padding-top: 8px;
}

.join-benefits__timeline {
    position: relative;
    padding-left: 8px;
}

.join-benefits__timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, #B8D4E8, #7EB8D8, #B8D4E8);
}

.join-benefit {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
}

.join-benefit__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wkc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(12, 50, 96, 0.2);
}

.join-benefit h3 {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--wkc-navy);
    margin-bottom: 4px;
}

.join-benefit p {
    font-size: 12px;
    color: var(--wkc-text-muted);
    line-height: 1.5;
}

/* Social sign up box */
.join-social-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 20px rgba(12, 50, 96, 0.06);
}

.join-social-box h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--wkc-navy);
    text-align: center;
    margin-bottom: 16px;
}

.join-social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1.5px solid #D6E8F5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wkc-navy);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.join-social-btn:last-child {
    margin-bottom: 0;
}

.join-social-btn:hover {
    border-color: var(--wkc-blue-mid);
    box-shadow: 0 2px 8px rgba(12, 50, 96, 0.08);
}

.join-social-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.join-social-btn--youtube .join-social-btn__icon { background: #FF0000; }
.join-social-btn--facebook .join-social-btn__icon { background: #1877F2; }
.join-social-btn--instagram .join-social-btn__icon { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.join-social-btn--tiktok .join-social-btn__icon { background: #000; }
.join-social-btn--x .join-social-btn__icon { background: #000; }
.join-social-btn--linkedin .join-social-btn__icon { background: #0A66C2; font-size: 10px; }

/* Login page extras */
.join-card__avatar--login {
    background: var(--wkc-blue-mid);
}

.join-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.join-terms--inline {
    margin-bottom: 0;
}

.join-login-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--wkc-blue-mid);
    text-decoration: none;
}

.join-login-link:hover {
    text-decoration: underline;
    color: var(--wkc-green);
}

.join-error--banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: center;
}

.join-auth-box--success {
    background: #ECFDF3;
    border-color: #A7F3D0;
    margin-bottom: 20px;
}

.join-auth-box--success .join-auth-box__icon {
    background: var(--wkc-green);
}

.join-auth-box--success strong {
    color: var(--wkc-green);
}

/* Toast on join page */
.wkc-join .toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
}

.wkc-join .toast {
    padding: 14px 20px;
    background: var(--wkc-navy);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 8px;
}

.wkc-join .toast--error { border-left: 4px solid #EF4444; }
.wkc-join .toast--success { border-left: 4px solid var(--wkc-green); }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
    .join-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .join-card {
        order: 1;
    }

    .join-benefits {
        display: contents;
    }

    .join-social-box {
        order: 2;
    }

    .join-benefits__timeline {
        order: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .join-benefits__timeline::before {
        display: none;
    }

    .join-benefit {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .join-card {
        padding: 24px 20px;
    }

    .join-hero__arrow {
        display: none;
    }

    .join-phone {
        grid-template-columns: 1fr;
    }

    .join-benefits__timeline {
        grid-template-columns: 1fr;
    }
}
