/* ========================================================
   SILK WHITE — LOGIN / LANDING — v5.0
   Concept: Gradient hero + centered login card
======================================================== */

/* ========================================================
   HERO SECTION
======================================================== */

.loginHero {
    min-height: 100vh;
    background: linear-gradient(145deg, #0f1f44 0%, #1e3a8a 50%, #1d4ed8 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 80px 20px 60px;
    position: relative; overflow: hidden;
}

/* subtle background shapes */
.loginHero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}
.loginHero::after {
    content: '';
    position: absolute; bottom: -120px; left: -80px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(37,99,235,.15); pointer-events: none;
}

.heroInner {
    width: 100%; max-width: 1000px;
    display: grid; grid-template-columns: 1fr 400px; gap: 64px;
    align-items: center; position: relative; z-index: 1;
}

/* Left: branding */
.heroBrand {}
.heroBadge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #93c5fd;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px; padding: 5px 14px; margin-bottom: 28px;
}
.heroTitle {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900; color: #fff; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 20px;
}
.heroTitle .hl { color: #fbbf24; }
.heroSub {
    font-size: 15px; color: rgba(255,255,255,.7);
    line-height: 1.75; margin-bottom: 36px; max-width: 400px;
}

.heroFeatures { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.heroFeature {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: rgba(255,255,255,.85);
}
.heroFeatureIcon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}

.heroNav {
    display: flex; align-items: center; gap: 20px;
    flex-wrap: wrap;
}
.heroNavLink {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6);
    transition: color .15s;
}
.heroNavLink:hover { color: #fff; }

/* Right: card */
.heroCard {
    background: #fff; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
}
.heroCardHead {
    padding: 24px 28px 0; text-align: center;
}
.heroCardHead img { height: 40px; margin: 0 auto 16px; }
.heroCardTitle {
    font-size: 22px; font-weight: 900; color: #0f1f44;
    letter-spacing: -.5px; margin-bottom: 4px;
}
.heroCardSub { font-size: 13px; color: #94a3b8; margin-bottom: 4px; }

/* Tabs inside card */
.heroCardTabs {
    display: flex; border-bottom: 1px solid #e2e8f0;
    margin-top: 20px;
}
.heroCardTab {
    flex: 1; padding: 12px; text-align: center;
    font-size: 13px; font-weight: 700; color: #94a3b8;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: .15s; margin-bottom: -1px;
}
.heroCardTab.active { color: #2563eb; border-bottom-color: #2563eb; }

/* Card body */
.heroCardBody { padding: 24px 28px 28px; }

/* Tab panels */
.tabPanel { display: none; }
.tabPanel.active { display: block; }

/* Login form */
.loginField { margin-bottom: 14px; }
.loginField label {
    display: block; font-size: 12px; font-weight: 700; color: #475569;
    margin-bottom: 6px;
}
.loginField input {
    width: 100%; height: 46px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; color: #1e293b;
    padding: 0 14px; font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.loginField input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    background: #fff;
}
.loginField input::placeholder { color: #94a3b8; }

.loginSubmitBtn {
    width: 100%; height: 50px; margin-top: 8px;
    background: #2563eb; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 800;
    cursor: pointer; transition: .15s; font-family: inherit;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
    letter-spacing: .2px;
}
.loginSubmitBtn:hover { background: #1d4ed8; box-shadow: 0 6px 20px rgba(37,99,235,.45); }

/* Join form */
.joinField { margin-bottom: 12px; }
.joinField label {
    display: block; font-size: 11px; font-weight: 700; color: #475569;
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px;
}
.joinField input, .joinField select {
    width: 100%; height: 42px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; color: #1e293b;
    padding: 0 12px; font-size: 13px; outline: none;
    transition: border-color .15s, box-shadow .15s; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.joinField input:focus, .joinField select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    background: #fff;
}
.joinField input::placeholder { color: #94a3b8; }
.joinField select option { background: #fff; }

.joinGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.joinField.full { grid-column: 1 / -1; }

.joinSubmitBtn {
    width: 100%; height: 46px; margin-top: 8px;
    background: #2563eb; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 800;
    cursor: pointer; transition: .15s; font-family: inherit;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.joinSubmitBtn:hover { background: #1d4ed8; }

/* Join form scroll area */
.joinScrollBody {
    max-height: 420px; overflow-y: auto;
    margin: -4px -4px 0; padding: 4px;
}

/* Login page notice */
.loginNoticeBar {
    background: rgba(255,255,255,.08);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 10px 20px;
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: rgba(255,255,255,.6);
    position: absolute; bottom: 0; left: 0; right: 0;
}
.loginNoticeBadge {
    flex-shrink: 0; font-size: 9px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: #fbbf24;
    background: rgba(251,191,36,.15); border-radius: 4px;
    padding: 2px 7px; border: 1px solid rgba(251,191,36,.2);
}

/* ========================================================
   LOGIN PAGE NAV (top bar on login page)
======================================================== */

.loginPageNav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    padding: 20px 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.loginPageNav img { height: 32px; }
.loginPageNavRight {
    display: flex; align-items: center; gap: 12px;
}
.loginPageNavRight a {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
    transition: color .15s;
}
.loginPageNavRight a:hover { color: #fff; }

/* Lang button on login page */
.loginLangWrap { position: relative; }
.loginLangBtn {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px; font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,.8); cursor: pointer; transition: .15s;
}
.loginLangBtn:hover { background: rgba(255,255,255,.18); color: #fff; }
.loginLangDrop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; min-width: 160px;
    overflow: hidden; z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.loginLangDrop.open { display: block; }

/* ========================================================
   RESPONSIVE
======================================================== */

@media (max-width: 860px) {
    .heroInner { grid-template-columns: 1fr; justify-items: center; gap: 40px; padding: 0 16px; }
    .heroBrand { text-align: center; }
    .heroSub { margin-left: auto; margin-right: auto; }
    .heroNav { justify-content: center; }
    .heroCard { max-width: 420px; width: 100%; }
    .loginHero { padding: 100px 16px 80px; }
    .loginPageNav { padding: 16px 20px; }
    .joinGrid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .heroCard { border-radius: 16px; }
    .heroCardBody { padding: 20px 18px 22px; }
    .heroCardHead { padding: 20px 18px 0; }
}
