/*
 * portal.css — BMSCE Parent Portal
 * Central stylesheet for landingPage.php and forgot_password.php
 * Italian design system: cream + gold + dark navy
 */

/* ════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
    --blue:    #1e3a6e;
    --gold:    #b8963e;
    --gold-lt: #e8d199;
    --green:   #27ae60;
    --red:     #a83232;
    --dark:    #1a1a2e;
    --mid:     #5a5a72;
    --muted:   #9a9aaa;
    --border:  #ddd8d0;
    --bg:      #faf8f5;
    --cream:   #faf8f5;
    --cream2:  #f3efe9;
}

/* ════════════════════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
/* body   { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; } */
footer { margin: 0 !important; max-width: 100% !important; }
/* html, body { height: 100%; overflow: hidden; } */

/* ════════════════════════════════════════════════════════════
   3. TWO-COLUMN LAYOUT
   ════════════════════════════════════════════════════════════ */
.cn-bgpart1 { background-color: var(--blue) !important; }
.cn-bgpart2 { background-color: var(--cream) !important; position: relative; }
.cn-mar-remove { margin: 0 !important; }

/* Italian gold top accent bar */
.cn-bgpart2::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%);
    z-index: 10;
}

/* Viewport-fill grid */
.cn-landing {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    margin: 0 !important;
}
.cn-landing > div { height: 100%; }
.cn-landing .uk-card { height: 100%; overflow: hidden; border-radius: 0 !important; }

/* Each panel scrolls independently */
.cn-bgpart1 { overflow-y: auto; }
.cn-bgpart2 { overflow-y: auto; }

/* ════════════════════════════════════════════════════════════
   4. LEFT PANEL
   ════════════════════════════════════════════════════════════ */

.lp-logo-name { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.2px; }
.lp-logo-sub  { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }
.lp-welcome   { margin-top: 28px; }
.lp-welcome h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.2; }
.lp-welcome p  { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.7; margin: 0 0 20px; }

.lp-notice {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 4px;
}
.cn-landing-logo a{
    padding-left:0px !important;
}
@media (max-width:767px){
.cn-reverse {
    flex-direction: column-reverse;
}
.cn-mob-view .cn-clgname{
    text-align:left;
}
}
.lp-notice-hd {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: var(--blue);
    text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 1px solid #e8edf5;
    padding-bottom: 10px; margin-bottom: 10px;
}
.lp-notice-body { font-size: 13px; color: #3d4a5c; line-height: 1.75; max-height: 200px; overflow-y: auto; }
.lp-notice-body::-webkit-scrollbar { width: 3px; }
.lp-notice-body::-webkit-scrollbar-thumb { background: #c8d4e8; border-radius: 3px; }

/* How-it-works steps (forgot password left panel) */
.hw-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.hw-dot  { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   5. RIGHT PANEL
   ════════════════════════════════════════════════════════════ */
.rp-wrap {
    padding: 44px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Eyebrow label */
.rp-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rp-eyebrow::before, .rp-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold-lt);
}

/* Title + divider */
.rp-title { font-size: 26px; font-weight: 300; color: var(--dark); margin: 0 0 4px; letter-spacing: .5px; line-height: 1.2; }
.rp-title strong { font-weight: 700; }
.rp-subtitle { font-size: 13px; color: var(--mid); margin: 0 0 24px; letter-spacing: .2px; }
.rp-divider { height: 1px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 60%, transparent 100%); margin-bottom: 22px; }

/* Info banner (login page) */
.rp-banner {
    background: #fdf5e8;
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 10px 14px;
    font-size: 12px;
    color: #6b4a10;
    line-height: 1.6;
    margin-bottom: 20px;
}
.rp-banner a { color: #6b4a10; font-weight: 700; }

/* Manual/help link */
.rp-manual {
    font-size: 11.5px;
    color: var(--mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    letter-spacing: .3px;
    opacity: .75;
}
.rp-manual:hover { opacity: 1; color: var(--gold); }

/* Sub text */
.fp-sub { font-size: 13px; color: var(--mid); margin: 0 0 18px; line-height: 1.6; letter-spacing: .2px; }

/* Back link */
.fp-back { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mid); text-decoration: none; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.fp-back:hover { color: var(--gold); }

/* Signature footer */
.rp-signature {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--cream2);
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   6. FORM FIELDS & INPUTS
   ════════════════════════════════════════════════════════════ */
.fp-field  { margin-bottom: 18px; }
.fp-label  {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--mid);
    margin-bottom: 7px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.fp-input-wrap { position: relative; }
.fp-ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none; display: flex; align-items: center;
}
.fp-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); cursor: pointer; background: none; border: none; padding: 0;
    display: flex; align-items: center;
}
.fp-inp {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    padding: 10px 42px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--dark);
    font-family: inherit;
    transition: border-color .2s;
}
.fp-inp:focus          { border-bottom-color: var(--gold); }
.fp-inp::placeholder   { color: var(--muted); font-size: 13px; }

/* OTP special input */
.fp-otp-inp { letter-spacing: 10px; font-size: 22px; font-weight: 700; text-align: center; padding-left: 18px; font-family: 'Courier New', monospace; }

/* ════════════════════════════════════════════════════════════
   7. CAPTCHA
   ════════════════════════════════════════════════════════════ */
.cn-cap-img {
    height: 46px; width: 140px;
    border: 1px solid var(--border);
    border-radius: 2px; cursor: pointer; flex-shrink: 0;
    object-fit: cover; display: block;
}
.cn-cap-refresh {
    width: 34px; height: 46px;
    border: 1px solid var(--border); border-radius: 2px;
    background: var(--cream2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); flex-shrink: 0;
    transition: border-color .18s, background .18s;
}
.cn-cap-refresh:hover   { border-color: var(--gold); background: #f5ead4; }
.cn-cap-input.fp-inp    { letter-spacing: 3px; font-size: 15px; font-weight: 600; }
.cn-cap-img.cn-loading  { background: linear-gradient(90deg,#ede9e2 25%,#e5e0d8 50%,#ede9e2 75%); background-size: 200%; animation: cn-shimmer .9s infinite; }
@keyframes cn-shimmer   { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ════════════════════════════════════════════════════════════
   8. BUTTONS
   ════════════════════════════════════════════════════════════ */

/* Primary — full width dark */
.fp-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s, transform .1s;
    margin-bottom: 10px;
}
.fp-btn:hover    { background: var(--blue); transform: translateY(-1px); }
.fp-btn:active   { transform: translateY(0); }
.fp-btn:disabled { background: #c8c4bc; cursor: not-allowed; transform: none; }

/* Ghost — full width outlined (login page stacked reset button) */
.fp-btn-ghost {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: transparent;
    color: var(--mid);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.fp-btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: #fdf9f1; }

/* Small ghost (forgot password inline) */
.fp-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--mid);
    border-radius: 2px;
    padding: 10px 16px;
    font-size: 11px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}
.fp-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Stacked button column */
.btn-row { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

/* ════════════════════════════════════════════════════════════
   9. ALERT BOXES
   ════════════════════════════════════════════════════════════ */
.fp-alert     { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 2px; font-size: 12.5px; margin-bottom: 16px; line-height: 1.6; }
.fp-info      { background: #fdf8ec; border-left: 3px solid var(--gold); color: #6b4a10; }
.fp-err       { background: #fdf0f0; border-left: 3px solid var(--red); color: #6b1a1a; }
.fp-warn      { background: #fdf8ec; border-left: 3px solid var(--gold); color: #6b4a10; }
.fp-ok        { background: #f0fdf4; border-left: 3px solid #4caf7d; color: #1b5e20; }
.fp-alert-icon { flex-shrink: 0; margin-top: 1px; }
.fp-alert-sub  { font-size: 11px; margin-top: 3px; opacity: .8; }

/* ════════════════════════════════════════════════════════════
   10. FORGOT PASSWORD — STEP WIZARD
   ════════════════════════════════════════════════════════════ */
.fp-wizard {
    display: flex; margin: 0 0 22px;
    border-radius: 0; overflow: hidden;
    border: 1px solid var(--border);
}
.fp-wstep {
    flex: 1; text-align: center; padding: 10px 4px 8px;
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted);
    background: var(--cream2); border-right: 1px solid var(--border);
}
.fp-wstep:last-child  { border-right: none; }
.fp-wstep .wn         { display: block; font-size: 14px; font-weight: 800; margin-bottom: 3px; line-height: 1.2; }
.fp-wstep.done        { background: #edf8f0; color: var(--green); }
.fp-wstep.done .wn    { color: var(--green); }
.fp-wstep.active      { background: var(--dark); color: #fff; border-right-color: var(--dark); }
.fp-wstep.active .wn  { color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   11. FORGOT PASSWORD — PASSWORD STRENGTH & RULES
   ════════════════════════════════════════════════════════════ */
.str-bg  { height: 3px; background: var(--border); border-radius: 0; margin-top: 8px; }
.str-bar { height: 3px; border-radius: 0; width: 0; transition: width .3s, background .3s; }
.str-lbl { font-size: 10.5px; margin-top: 4px; min-height: 13px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

.pwd-rules            { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; }
.pwd-rules li         { font-size: 11.5px; color: var(--muted); padding-left: 16px; position: relative; line-height: 1.75; }
.pwd-rules li::before { content: '○'; position: absolute; left: 0; font-size: 9px; top: 2px; }
.pwd-rules li.ok      { color: var(--green); }
.pwd-rules li.ok::before { content: '✓'; color: var(--green); }

.match-ok   { color: var(--green); font-size: 12px; margin: -6px 0 10px; }
.match-fail { color: var(--red);   font-size: 12px; margin: -6px 0 10px; }

/* ════════════════════════════════════════════════════════════
   12. FORGOT PASSWORD — OTP RESEND ROW
   ════════════════════════════════════════════════════════════ */
.fp-resend-row          { text-align: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--mid); }
.fp-resend-btn          { background: none; border: none; color: var(--gold); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; letter-spacing: .3px; }
.fp-resend-btn:hover    { text-decoration: underline; }
.fp-resend-btn:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
#resend-timer           { font-weight: 700; color: var(--mid); }

/* ════════════════════════════════════════════════════════════
   13. FORGOT PASSWORD — DEV OTP BOX
   ════════════════════════════════════════════════════════════ */
.fp-dev-box      { background: linear-gradient(135deg,#fffbf0,#fff4d0); border: 2px solid #f0c84a; border-radius: 8px; padding: 14px; text-align: center; margin-bottom: 16px; }
.fp-dev-box .otp { font-size: 38px; font-weight: 900; letter-spacing: 12px; color: var(--red);  monospace; line-height: 1; }
.fp-dev-box p    { margin: 6px 0 0; font-size: 12px; color: #856800; }

/* ════════════════════════════════════════════════════════════
   14. FORGOT PASSWORD — SUCCESS STATE
   ════════════════════════════════════════════════════════════ */
.fp-success        { text-align: center; padding: 8px 0; }
.fp-success-icon   { width: 72px; height: 72px; border-radius: 50%; background: #e8f9ed; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 36px; color: var(--green); }
.fp-success h3     { font-size: 22px; font-weight: 300; color: var(--dark); margin: 0 0 6px; letter-spacing: .4px; }
.fp-success h3 strong { font-weight: 700; }
.fp-success p      { font-size: 13.5px; color: var(--mid); margin: 0 0 14px; }

/* ════════════════════════════════════════════════════════════
   15. MOBILE OVERRIDES
   ════════════════════════════════════════════════════════════ */
.cn-mob-view { display: none; }
@media (max-width: 767px) {
    html, body        { overflow: auto; height: auto; }
    .cn-landing       { height: auto !important; overflow: visible !important;
                        flex-wrap: wrap !important; flex-direction: column-reverse; }
    .cn-landing > div        { height: auto !important; }
    .cn-landing .uk-card     { height: auto !important; overflow: visible !important; }
    .cn-bgpart1              { overflow-y: visible; }
    .cn-bgpart2              { overflow-y: visible; }
    .cn-logo                 { display: none; }
    .rp-wrap                 { height: auto; overflow-y: visible; padding: 28px 22px 36px; justify-content: flex-start; }
    .cn-mob-view             { display: inline-flex; margin-bottom: 16px; }
    .lp-notice-body          { max-height: 160px; }
    .pwd-rules               { grid-template-columns: 1fr; }
}
