/*
 * Learneva - Sign-up pages (redesign, Nov 2026). Builds on auth-login.css (.lva base).
 *   .lva--signup : learner sign-up   (blue -> green, "start learning")
 *   .lva--teach  : instructor apply  (indigo -> teal, "share your knowledge")
 */

/* ---------- Shared sign-up pieces ---------- */
.su-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.su-strength { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.su-strength span { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; transition: background-color .2s; }
.su-strength em { min-width: 44px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--lva-muted); text-align: right; }
.su-strength[data-level="1"] span:nth-child(1) { background: #ef4444; }
.su-strength[data-level="1"] em { color: #ef4444; }
.su-strength[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.su-strength[data-level="2"] em { color: #b45309; }
.su-strength[data-level="3"] span { background: #16a34a; }
.su-strength[data-level="3"] em { color: #16a34a; }

.su-terms { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--lva-muted); }

/* ---------- Learner sign-up (.lva--signup) ---------- */
.lva--signup .lva__brand {
    background:
        radial-gradient(circle at 15% 85%, rgba(34, 197, 94, .35), transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(125, 211, 252, .25), transparent 40%),
        linear-gradient(150deg, #0d2a45 0%, #185079 45%, #0f766e 100%);
}
.lva--signup .lva__icon-badge { background: linear-gradient(135deg, #dcfce7, #e0f2fe); color: #15803d; }
.lva--signup .lva__submit { background: linear-gradient(135deg, #185079 0%, #16a34a 100%); box-shadow: 0 12px 24px -10px rgba(22, 163, 74, .55); }
.lva--signup .lva__submit:hover { box-shadow: 0 16px 30px -10px rgba(22, 163, 74, .65); }
.lva--signup .lva__input:focus { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.lva--signup .lva__input-wrap:focus-within .lva__input-ico { color: #16a34a; }

.su-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 4px; }
.su-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; }
.su-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px;
    width: 2px; background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .05));
}
.su-steps__num {
    flex: 0 0 36px; width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff; color: #185079;
    font-weight: 800; font-size: 14px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .14);
}
.su-steps strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin: 6px 0 2px; }
.su-steps li > span:last-child { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }

.su-teach-link {
    display: flex; align-items: center; gap: 14px;
    margin-top: 18px; padding: 14px 16px;
    border: 1px solid #e2e8f0; border-radius: 14px;
    background: linear-gradient(135deg, #f8faff, #f0fdf4);
    color: var(--lva-ink); text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.su-teach-link:hover { color: var(--lva-ink); border-color: #c7d2fe; transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(15, 42, 80, .4); }
.su-teach-link__ico {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #4338ca; color: #fff;
}
.su-teach-link > span:nth-child(2) { flex: 1; font-size: 13px; color: var(--lva-muted); }
.su-teach-link strong { display: block; font-size: 14px; color: var(--lva-ink); }
.su-teach-link > i { color: #94a3b8; }

/* ---------- Instructor application (.lva--teach) ---------- */
.lva--teach { background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%); }
.lva--teach .lva__blob--1 { background: #ddd6fe; }
.lva--teach .lva__blob--2 { background: #99f6e4; }
.lva--teach .su-teach-card { grid-template-columns: .9fr 1.1fr; max-width: 1140px; }
.lva--teach .lva__brand {
    background:
        radial-gradient(circle at 85% 12%, rgba(45, 212, 191, .35), transparent 42%),
        radial-gradient(circle at 10% 95%, rgba(129, 140, 248, .45), transparent 45%),
        linear-gradient(155deg, #1e1b4b 0%, #312e81 45%, #0f766e 100%);
}
.lva--teach .lva__pill i { color: #5eead4; }
.lva--teach .lva__brand-title span { background: linear-gradient(90deg, #99f6e4, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lva--teach .lva__icon-badge { background: linear-gradient(135deg, #ede9fe, #ccfbf1); color: #4338ca; }
.lva--teach .lva__submit { background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #0d9488 100%); box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .6); }
.lva--teach .lva__submit:hover { box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .7); }
.lva--teach .lva__submit:focus-visible { outline-color: rgba(79, 70, 229, .4); }
.lva--teach .lva__input:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.lva--teach .lva__input-wrap:focus-within .lva__input-ico { color: #4f46e5; }
.lva--teach .lva__link { color: #4f46e5; }
.lva--teach .lva__link:hover { color: #312e81; }

.su-section {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0 14px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: #475569;
}
.su-section::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.su-section span {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #eef2ff; color: #4338ca; font-size: 12px;
}
.lva__form .su-section:not(:first-child) { margin-top: 12px; }

.su-upload {
    position: relative;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 16px 18px;
    border: 2px dashed #c7d2fe; border-radius: 14px;
    background: #f8faff;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.su-upload:hover, .su-upload:focus-within { border-color: #4f46e5; background: #eef2ff; }
.su-upload.has-file { border-style: solid; border-color: #0d9488; background: #f0fdfa; }
.su-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.su-upload__ico {
    flex: 0 0 44px; width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #fff; color: #4f46e5; font-size: 19px;
    box-shadow: 0 6px 14px -10px rgba(49, 46, 129, .6);
}
.su-upload.has-file .su-upload__ico { color: #0d9488; }
.su-upload__text { flex: 1; min-width: 160px; }
.su-upload__text strong { display: block; font-size: 14px; color: var(--lva-ink); }
.su-upload__text small { font-size: 12.5px; color: var(--lva-muted); }
.su-upload__name {
    max-width: 100%;
    padding: 4px 10px; border-radius: 999px;
    background: #fff; border: 1px solid #e2e8f0;
    font-size: 12px; color: var(--lva-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.su-upload.has-file .su-upload__name { color: #0f766e; border-color: #99f6e4; }

.lva .su-textarea { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.6; resize: vertical; }

.su-notice {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 6px 0 14px; padding: 12px 14px;
    border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
    font-size: 13.5px; color: #9a3412;
}

.su-process {
    margin-top: auto;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
}
.su-process__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.su-process ol { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.su-process li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff; }
.su-process li + li::before { content: ""; width: 22px; height: 1px; margin-right: 4px; background: rgba(255, 255, 255, .35); }
.su-process li span {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; color: #312e81; font-size: 12px; font-weight: 800;
}
.su-sep { margin: 0 6px; color: #cbd5e1; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .lva--teach .su-teach-card { grid-template-columns: 1fr; max-width: 620px; }
    .su-steps { display: none; }
    .lva--teach .lva__perks { display: none; }
}
@media (max-width: 575px) {
    .su-row { grid-template-columns: 1fr; }
    .su-process ol { flex-wrap: wrap; justify-content: flex-start; }
    .su-process li + li::before { display: none; }
    .su-upload { padding: 14px; }
}
