/* =========================================================
   CFTeCourses Members UI V1
   ========================================================= */

.member-page{
    min-height:calc(100vh - 80px);
    padding:56px 18px 80px;
    background:
        radial-gradient(circle at 12% 8%,rgba(0,166,199,.12),transparent 28%),
        radial-gradient(circle at 88% 15%,rgba(15,61,94,.10),transparent 30%),
        var(--bg,#f6fafc);
    color:var(--text,#102f47);
}

.member-shell{
    width:min(1180px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(390px,480px);
    gap:46px;
    align-items:center;
}

.member-story{
    padding:30px 10px;
}

.member-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border-radius:999px;
    background:rgba(0,166,199,.10);
    color:#087f98;
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    margin-bottom:18px;
}

.member-story h1{
    margin:0;
    max-width:720px;
    font-size:clamp(34px,5vw,62px);
    line-height:1.15;
    letter-spacing:-.035em;
}

.member-story h1 span{
    color:#00a6c7;
}

.member-story > p{
    max-width:650px;
    margin:20px 0 0;
    font-size:17px;
    line-height:2;
    opacity:.78;
}

.member-benefits{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:32px;
}

.member-benefit{
    padding:18px;
    border:1px solid rgba(15,61,94,.10);
    border-radius:18px;
    background:rgba(255,255,255,.62);
    backdrop-filter:blur(8px);
}

.member-benefit strong{
    display:block;
    font-size:15px;
    margin-bottom:5px;
}

.member-benefit span{
    display:block;
    font-size:13px;
    line-height:1.7;
    opacity:.67;
}

.member-card{
    background:rgba(255,255,255,.94);
    border:1px solid rgba(15,61,94,.10);
    border-radius:26px;
    padding:34px;
    box-shadow:
        0 24px 70px rgba(15,61,94,.12),
        0 4px 16px rgba(15,61,94,.05);
}

.member-card-head{
    margin-bottom:25px;
}

.member-card-head small{
    display:block;
    color:#00a6c7;
    font-weight:900;
    letter-spacing:.08em;
    margin-bottom:8px;
}

.member-card-head h2{
    margin:0;
    font-size:29px;
    line-height:1.3;
}

.member-card-head p{
    margin:9px 0 0;
    font-size:14px;
    line-height:1.8;
    opacity:.66;
}

.member-field{
    margin-bottom:17px;
}

.member-field label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:900;
}

.member-field input{
    width:100%;
    box-sizing:border-box;
    min-height:52px;
    padding:0 15px;
    border:1px solid #d6e4ea;
    border-radius:12px;
    background:#fff;
    color:#102f47;
    font:inherit;
    outline:none;
    transition:.18s ease;
}

.member-field input:focus{
    border-color:#00a6c7;
    box-shadow:0 0 0 4px rgba(0,166,199,.10);
}

.member-password-row{
    position:relative;
}

.member-password-row input{
    padding-left:54px;
}

.member-password-toggle{
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:transparent;
    color:#55717f;
    font-family:inherit;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
    padding:8px;
}

.member-hint{
    margin-top:6px;
    font-size:11px;
    opacity:.58;
}

.member-submit{
    width:100%;
    min-height:54px;
    border:0;
    border-radius:13px;
    background:#0f3d5e;
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    transition:.2s ease;
    margin-top:4px;
}

.member-submit:hover{
    background:#00a6c7;
    transform:translateY(-1px);
}

.member-alert{
    border-radius:12px;
    padding:13px 15px;
    margin-bottom:18px;
    font-size:13px;
    line-height:1.7;
    font-weight:700;
}

.member-alert.error{
    background:#fff1f1;
    border:1px solid #f3c6c6;
    color:#922f2f;
}

.member-alert.success{
    background:#edf9f2;
    border:1px solid #bfe5ce;
    color:#23653c;
}

.member-switch{
    text-align:center;
    margin:21px 0 0;
    font-size:13px;
    opacity:.78;
}

.member-switch a,
.member-mini-link{
    color:#008eab;
    font-weight:900;
    text-decoration:none;
}

.member-form-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:-2px 0 16px;
    font-size:12px;
}

.member-trust{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:18px;
    font-size:11px;
    opacity:.52;
}

.member-trust-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#20ad72;
}

[data-theme="dark"] .member-page{
    background:
        radial-gradient(circle at 12% 8%,rgba(0,166,199,.12),transparent 28%),
        radial-gradient(circle at 88% 15%,rgba(84,212,235,.06),transparent 30%),
        var(--bg,#081923);
}

[data-theme="dark"] .member-card{
    background:rgba(13,34,51,.95);
    border-color:rgba(255,255,255,.08);
    box-shadow:0 24px 70px rgba(0,0,0,.24);
}

[data-theme="dark"] .member-benefit{
    background:rgba(16,40,56,.70);
    border-color:rgba(255,255,255,.07);
}

[data-theme="dark"] .member-field input{
    background:#102838;
    border-color:#29465a;
    color:#fff;
}

[data-theme="dark"] .member-field input:focus{
    border-color:#54d4eb;
}

[data-theme="dark"] .member-alert.error{
    background:#3a2023;
    border-color:#65363a;
    color:#ffd6d6;
}

[data-theme="dark"] .member-alert.success{
    background:#17352a;
    border-color:#285b45;
    color:#c8f2d9;
}

@media(max-width:900px){
    .member-page{
        padding-top:28px;
    }

    .member-shell{
        grid-template-columns:1fr;
        max-width:620px;
    }

    .member-story{
        padding:10px 0 0;
    }

    .member-story h1{
        font-size:38px;
    }
}

@media(max-width:560px){
    .member-page{
        padding:20px 12px 55px;
    }

    .member-shell{
        gap:25px;
    }

    .member-benefits{
        grid-template-columns:1fr;
    }

    .member-card{
        padding:25px 18px;
        border-radius:20px;
    }

    .member-story h1{
        font-size:32px;
    }
}


/* ==========================================================
   CFTeCOURSES — REGISTER / MEMBERS PREMIUM LAYOUT V2
   ========================================================== */

.member-page{
    display:flex;
    align-items:center;
}

.member-shell{
    grid-template-columns:
        minmax(0,1.08fr)
        minmax(430px,520px);
    gap:58px;
    align-items:center;
}

.member-story{
    padding:34px 18px 34px 4px;
}

.member-story h1{
    max-width:680px;
    font-size:clamp(38px,4.5vw,60px);
    line-height:1.13;
}

.member-story > p{
    max-width:620px;
    font-size:16px;
    line-height:1.95;
}

.member-benefits{
    max-width:690px;
}

.member-benefit{
    min-height:112px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.member-card{
    width:100%;
    box-sizing:border-box;
    padding:38px 40px;
    border-radius:28px;
}

.member-card-head{
    margin-bottom:27px;
}

.member-card-head h2{
    font-size:30px;
}

.member-card form{
    width:100%;
}

.member-field{
    margin-bottom:18px;
}

.member-field input{
    min-height:55px;
    border-radius:13px;
    padding-right:16px;
    padding-left:16px;
}

.member-password-row input{
    padding-left:65px;
}

.member-submit{
    min-height:56px;
    border-radius:14px;
    margin-top:7px;
}

.member-switch{
    padding-top:3px;
}

.member-trust{
    padding-top:2px;
}


/* Tablet */

@media(max-width:1000px){

    .member-shell{
        grid-template-columns:
            minmax(0,1fr)
            minmax(390px,470px);
        gap:34px;
    }

    .member-card{
        padding:32px;
    }

}


/* Mobile / stacked */

@media(max-width:900px){

    .member-page{
        display:block;
    }

    .member-shell{
        grid-template-columns:1fr;
        max-width:680px;
        gap:26px;
    }

    .member-story{
        padding:12px 4px 0;
    }

    .member-story h1{
        max-width:600px;
    }

    .member-benefits{
        max-width:none;
    }

    .member-card{
        max-width:620px;
        margin:0 auto;
    }

}


/* Small mobile */

@media(max-width:560px){

    .member-page{
        padding-left:12px;
        padding-right:12px;
    }

    .member-story h1{
        font-size:34px;
        line-height:1.18;
    }

    .member-story > p{
        font-size:14px;
        line-height:1.85;
    }

    .member-benefits{
        grid-template-columns:1fr;
        gap:10px;
        margin-top:24px;
    }

    .member-benefit{
        min-height:auto;
        padding:16px;
    }

    .member-card{
        padding:25px 19px;
        border-radius:22px;
    }

    .member-card-head h2{
        font-size:25px;
    }

    .member-field input{
        min-height:53px;
    }

}


/* Dark mode refinements */

[data-theme="dark"] .member-card{
    background:rgba(13,34,51,.97);
}

[data-theme="dark"] .member-benefit{
    background:rgba(16,40,56,.78);
}



/*
==========================================================
CFTECOURSES — REGISTRATION V2
Country + International Phone
==========================================================
*/

.member-field select{
    width:100%;
    min-height:52px;
    box-sizing:border-box;
    padding:0 15px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    color:var(--text);
    font-family:inherit;
    font-size:13px;
    outline:none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.member-field select:focus{
    border-color:var(--purple2);
    box-shadow:
        0 0 0 3px
        rgba(0,166,199,.10);
}

.member-phone-row{
    display:grid;
    grid-template-columns:
        minmax(0,1fr)
        76px;
    direction:rtl;
}

.member-phone-row input{
    border-radius:
        12px 0 0 12px !important;
    direction:ltr;
    text-align:left;
}

.member-phone-code{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    box-sizing:border-box;
    border:1px solid var(--border);
    border-left:0;
    border-radius:
        0 12px 12px 0;
    background:var(--surface-soft);
    color:var(--text);
    direction:ltr;
    font-size:13px;
    font-weight:900;
}

@media(max-width:520px){

    .member-phone-row{
        grid-template-columns:
            minmax(0,1fr)
            70px;
    }
}


/*
==========================================================
CFTECOURSES — REGISTRATION PHONE LAYOUT FIX
Phone wide / dial code compact
==========================================================
*/

.member-phone-row{
    display:flex !important;
    width:100%;
    direction:rtl;
}

.member-phone-code{
    flex:0 0 82px !important;
    width:82px !important;
    min-width:82px !important;

    border:1px solid var(--border) !important;
    border-left:0 !important;

    border-radius:
        0 12px 12px 0 !important;

    direction:ltr;
}

.member-phone-row input{
    flex:1 1 auto !important;
    width:0 !important;
    min-width:0 !important;

    border-radius:
        12px 0 0 12px !important;

    direction:ltr;
    text-align:left;
}

@media(max-width:520px){

    .member-phone-code{
        flex-basis:72px !important;
        width:72px !important;
        min-width:72px !important;
    }
}
