﻿/* ── HP Vision Portal · Login & OTP Styles ── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.mainbg {
    background-color: #eaf0f8;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
}

/* ── Top URL bar ── */
.top-blue-bar {
    background: #0b57b7;
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    letter-spacing: 0.01em;
}

/* ── Page centre ── */
.login-page-wrap {
    min-height: calc(100vh - 37px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 40, 100, 0.10);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 36px;
}

    /* ── Headings ── */
    .auth-card h3 {
        color: #0b57b7;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 28px;
        line-height: 1.3;
    }

    /* ── Label ── */
    .auth-card label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #222;
        margin-bottom: 6px;
    }

    /* ── Input ── */
    .auth-card .form-control {
        width: 100%;
        height: 42px;
        border: 1px solid #c8d6e8;
        border-radius: 6px;
        padding: 0 12px;
        font-size: 14px;
        color: #333;
        background: #fff;
        outline: none;
        transition: border-color 0.18s;
    }

        .auth-card .form-control::placeholder {
            color: #a0aec0;
        }

        .auth-card .form-control:focus {
            border-color: #0b57b7;
            box-shadow: 0 0 0 3px rgba(11,87,183,0.12);
        }

/* ── Primary button ── */
.btn-primary {
    display: block;
    width: 100%;
    height: 44px;
    background: #1565d8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.18s, transform 0.1s;
    margin-top: 18px;
}

    .btn-primary:hover {
        background: #0f52b8;
    }

    .btn-primary:active {
        background: #0d47a0;
        transform: scale(0.99);
    }

/* ── Footnote ── */
.auth-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 14px;
    font-style: italic;
}

/* ══ OTP page ══ */
.otp-card h3 {
    margin-bottom: 6px;
}

.otp-card p {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.motp-input {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1.5px solid #c8d6e8;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fff;
}

    .motp-input:focus {
        border-color: #0b57b7;
        box-shadow: 0 0 0 3px rgba(11,87,183,0.12);
    }

/* Timer & Resend row */
.tm-send {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.countdown span {
    font-size: 13px;
    font-weight: 600;
    color: #0b57b7;
}

.resend a {
    font-size: 13px;
    color: #0b57b7;
    text-decoration: none;
    font-weight: 500;
}

    .resend a:hover {
        text-decoration: underline;
    }

#loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: none;
}

    #loader.active {
        display: block;
    }

.loader-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .loader-wrap img {
        width: 60px;
        height: 60px;
    }
/* ══ Responsive ══ */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px 28px;
        border-radius: 8px;
    }

        .auth-card h3 {
            font-size: 18px;
        }

    .motp-input {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .otp-inputs {
        gap: 7px;
    }
}

@media (max-width: 360px) {
    .motp-input {
        width: 34px;
        height: 42px;
        font-size: 16px;
    }

    .otp-inputs {
        gap: 5px;
    }
}

.error-text {
    color: red;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
}

.success-text {
    color: green;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

/* vision css*/

:root {
    --navy: #0d2d6e;
    --blue: #1565d8;
    --blue-lt: #e8f0fc;
    --green: #2e7d32;
    --green-lt: #e8f5e9;
    --orange: #e65100;
    --orange-lt: #fff3e0;
    --text: #1a1a1a;
    --muted: #555;
    --border: #dde3ed;
    --bg: #f4f6fb;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

/* ══ NAV ══ */
nav, .main-nav {
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: #d8e4f5;
        text-decoration: none;
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 4px;
        transition: background 0.15s, color 0.15s;
        white-space: nowrap;
    }

        .nav-links a:hover,
        .nav-links a.active {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

/* ══ HERO ══ */
.hero {
    background: linear-gradient(160deg, #0b57b7 0%, #0d3a8a 60%, #0a2a6e 100%);
    padding: 36px 28px 28px;
    color: #fff;
}

    .hero h1 {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 10px;
        max-width: 680px;
    }

    .hero p {
        font-size: 14px;
        color: #c5d8f5;
        margin-bottom: 20px;
        max-width: 620px;
        line-height: 1.6;
    }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    font-size: 13px;
    color: #d0e4fa;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 14px;
}

    .hero-stats .stat {
        padding: 0 18px;
        border-right: 1px solid rgba(255,255,255,0.25);
        line-height: 1;
    }

        .hero-stats .stat:first-child {
            padding-left: 0;
        }

        .hero-stats .stat:last-child {
            border-right: none;
        }

        .hero-stats .stat strong {
            color: #fff;
        }

/* ══ PAGE CONTENT WRAPPER ══ */
.portal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

/* ══ VISION CARDS ══ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.vision-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    border-top: 4px solid transparent;
    padding: 20px 18px 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .vision-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.11);
        transform: translateY(-2px);
    }

    .vision-card.v1 {
        border-top-color: var(--blue);
    }

    .vision-card.v2 {
        border-top-color: var(--green);
    }

    .vision-card.v3 {
        border-top-color: var(--orange);
    }

.vision-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.v1 .vision-label {
    color: var(--blue);
}

.v2 .vision-label {
    color: var(--green);
}

.v3 .vision-label {
    color: var(--orange);
}

.vision-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vision-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.card-stats {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    gap: 4px;
    align-items: center;
}

.v1 .card-stats {
    color: var(--blue);
}

.v2 .card-stats {
    color: var(--green);
}

.v3 .card-stats {
    color: var(--orange);
}

.card-stats .sep {
    color: #bbb;
    font-weight: 400;
}

/* ══ SUBMIT BUTTON ══ */
.submit-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.btn-submit {
    display: inline-block;
    background: linear-gradient(180deg, #1a6fea, #1255c0);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 60px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(18,85,192,0.30);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
}

    .btn-submit:hover {
        background: linear-gradient(180deg, #1560d4, #0f45a8);
        box-shadow: 0 6px 18px rgba(18,85,192,0.38);
        color: #fff;
    }

    .btn-submit:active {
        transform: scale(0.98);
    }

/* ══ TRENDING ══ */
.trending-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
}

.trending-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.trending-items {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.trending-sep {
    color: #bbb;
    margin: 0 6px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 8px 16px 16px;
        gap: 2px;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 10px 12px;
            border-radius: 6px;
        }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-stats .stat {
        padding: 0 12px;
        font-size: 12px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btn-submit {
        padding: 13px 40px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 16px 22px;
    }

        .hero h1 {
            font-size: 20px;
        }

    .hero-stats {
        flex-direction: column;
        gap: 6px;
        border-top: none;
        padding-top: 0;
        margin-top: 12px;
    }

        .hero-stats .stat {
            padding: 0;
            border-right: none;
        }

    .portal-content {
        padding: 20px 14px 32px;
    }

    nav, .main-nav {
        padding: 0 16px;
    }

    .btn-submit {
        width: 100%;
        padding: 13px 20px;
    }
}
#otp-inputs {
    margin-top: 20px;
}

#btnSendOtp:disabled {
    background-color: #b0b0b0;
    cursor: not-allowed;
    opacity: 0.7;
}

.input-error {
    border: 1.5px solid red !important;
    outline-color: red !important;
}

#emailError {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}
