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

:root {
    --navy: #21236A;
    --navy-dark: #21236A;
    --navy-light: #2c3fa0;
    --red: #c8102e;
    --blue-link: #2c7be5;
    --bg: #e5e5e5;
    --bg-panel: #d9d9d9;
    --bg-panel2: #cecece;
    --white: #ffffff;
    --text: #2C2D30;
    --text-muted: #666;
    --border: #c4c4c4;
    --input-bg: #ffffff;
    --shadow: 0 20px 60px rgba(26, 32, 86, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
}

html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

/* ── PAGE LAYOUT ── */
.page {
    min-height: 100vh;
    background: url("../assets/images/background.png") no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── Z-INDEX LAYERS ── */
.diag-shapes {
    z-index: 0;
}

.bigben-wrap {
    z-index: 1;
}

.card {
    z-index: 5;
}

.logo-area {
    z-index: 10;
}

/* ── BIG BEN ILLUSTRATION ── */
.bigben-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0.14;
}

.bigben-wrap svg {
    height: 100%;
    width: auto;
}

/* ── LOGO ── */
.logo-area {
    position: absolute;
    top: 36px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeDown 0.6s ease both;
}

.logo-img {
    width: 300px;
    height: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    right: -18px;
    bottom: 27px;
}

.logo-shield {
    width: 52px;
    height: auto;
    flex-shrink: 0;
}

.logo {
    height: 100px;
    width: 300px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── CARD TITLE ── */
.card-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 26px;
    color: var(--navy);
    display: flex;
    justify-content: center;
}

/* ── FORM FIELDS ── */
.field {
          margin-bottom: 31px;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-bottom: 2px;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    /* margin-left: 13px; */
}

.forgot {
    font-size: 13px;
    color: #1379F0;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.15s;
}

.forgot:hover {
    opacity: 0.75;
}

/* ── INPUT WRAP ── */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    width: 400px;
}

.input-wrap svg {
    position: absolute;
        left: 20px;
    top: 61%;
    transform: translateY(-50%);
    pointer-events: none;
    color:#00000080;
    z-index: 2;
}

/* ── INPUTS ── */
input[type="text"],
input[type="email"],
input[type="password"] {
    /* position: absolute; */
    width: 100%;
    height: 40px;
    border: 1px solid #21236A;
    border-radius: 52px;
    background: var(--input-bg);
    padding: 0 14px 0 42px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var #2a2a2a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(44, 63, 160, 0.1);
}

/* ── REMEMBER ME ── */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    /* margin-left: 13px; */
    cursor: pointer;
        margin-bottom: 44px;
}

.remember-row input[type="checkbox"] {
    position: static;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    accent-color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
}

.remember-row span {
    font-size: 13px;
    color: #393B40;
    user-select: none;
        font-weight: 500;
}

/* ── LOGIN BUTTON ── */
.btn-login {
    width: 149px;
    height: 36px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 32, 86, 0.25);
}

.btn-login:hover {
    background: var(--navy-light);
    box-shadow: 0 6px 22px rgba(26, 32, 86, 0.35);
}

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

.btn-login img {
    transition: transform 0.2s;
}

.btn-login:hover img {
    transform: translateX(3px);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── DESKTOP OVERRIDE (1024px+) ── */
@media (min-width: 1024px) {

    /* .remember-row {
        margin-left: 21px;
    } */
}

/* ── RESPONSIVE: MOBILE (max 600px) ── */
@media (max-width: 600px) {
    .page {
        background: url("../assets/images/mobilebackg.png") no-repeat center;
        background-size: cover;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(4px);
        border-radius: 10px;
        margin-top: 2px;
    }


    .logo-area {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .logo-img {
        width: 234px;
        height: 91px;
    }

    .card {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        max-width: 300px;
              margin-bottom: 85px;
    }

    .card-title {
        font-size: 25px;
        margin-bottom: 9px;
        margin-top: 18px;
        text-align: center;
        justify-content: center;
    }

    label {
        margin-left: 0;
        font-weight: 400;
    }

    .remember-row {
        margin-left: 0;
            margin-bottom: 31px;
    }

    /* Input wrapper full width on mobile */
    .input-wrap {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        position: absolute;
        width: 100%;
        height: 40px;
        border: 1.5px solid #21236A;
        border-radius: 52px;
        background: var(--input-bg);
        padding: 0 14px 0 42px;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        color: #2a2a2a;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
               margin-top: 13px;
    }


    .btn-login {
        width: 149px;
        margin: 0 auto;
        height: 36px;
    }
}


/* ── RESPONSIVE: VERY SMALL (max 360px) ── */
@media (max-width: 360px) {
    .page {
        padding: 0 16px;
    }

    .logo-img {
        width: 190px;
    }

    .card {
        max-width: 100%;
    }

    .card-title {
        font-size: 22px;
    }

    .btn-login {
        width: 70%;
        height: 44px;
        font-size: 14px;
    }
}

#error {
    color: #ff0000 !important;
    font-weight: 400 !important;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

#spin {
    display: none;
    text-align: center;
    margin-top: 15px;
}

#spin img {
    max-height: 30px;
}

/* ────────────────────────────────────────────────────────
   ── CERTIFICATE VERIFICATION SEARCH VIEW (NAMESPACED) ──
   ──────────────────────────────────────────────────────── */
.verify-search-view {
    min-height: 100vh;
    background: url("../assets/images/background.png") no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.verify-search-view .card-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 26px;
    color: var(--navy);
    justify-content: center;
    display: flex;
}

.verify-search-view .student-logo-img {
    width: 300px;
    height: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    right: -39px;
    bottom: 26px;
}

.verify-search-view .field {
    margin-bottom: 43px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verify-search-view label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    max-width: 376px;
    text-align: left;
}

.verify-search-view .input-wrap {
    margin-top: 7px;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 376px;
}

.verify-search-view input[type="text"] {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    padding: 0 14px 0 20px;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 3px;
    border-radius: 18px;
}

.verify-search-view input[type="text"]:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(44, 63, 160, 0.1);
}

.verify-search-view .btn-login {
    width: 149px;
    height: 36px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 32, 86, 0.25);
    margin: 0 auto;
}

.verify-search-view .btn-login:hover {
    background: var(--navy-dark);
    box-shadow: 0 6px 22px rgba(26, 32, 86, 0.35);
}

.verify-search-view .btn-login:active {
    transform: scale(0.98);
}

/* SEARCH MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .verify-search-view {
        background: url("../assets/images/mobilebackg.png") no-repeat center;
        background-size: cover;
        align-items: center;
        justify-content: center;
        min-height: 110vh;
    }

    .verify-search-view .field {
        margin-bottom: 22px !important;
        margin-left: 1px !important;
        margin-top: 18px !important;
    }

    .verify-search-view .student-logo-img {
        width: 220px;
        height: 72px;
        position: relative;
        right: -16px;
    }

    .verify-search-view .card {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        max-width: 300px;
    }

    .verify-search-view .card-title {
        font-size: 16px;
        margin-bottom: 9px;
        color: var(--navy);
        text-align: center;
        display: flex;
        justify-content: center;
        margin-top: 106px;
    }

    .verify-search-view input[type="text"] {
        width: 100%;
        padding-left: 20px;
        border-radius: 18px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(4px);
    }

    .verify-search-view .btn-login {
        font-size: 13px;
        width: 149px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .verify-search-view {
        padding: 0 16px;
    }

    .verify-search-view .logo-img {
        width: 190px;
    }

    .verify-search-view .card {
        max-width: 100%;
    }

    .verify-search-view .card-title {
        font-size: 22px;
    }

    .verify-search-view .btn-login {
        width: 70%;
        height: 44px;
        font-size: 14px;
    }
}

/* ────────────────────────────────────────────────────────
   ── CERTIFICATE VERIFICATION RESULTS VIEW ───────────────
   ──────────────────────────────────────────────────────── */

/* HERO */
.hero {
    position: relative;
    height: 420px;
    background: url("../assets/images/centerverificationimage.png") no-repeat center;
    background-size: cover;
    background-color: #dde2ea;
}

.search-icon img {
    height: 22px;
    width: 22px;
}

.result-table,
.result-table .row,
.result-table .row div {
    color: #000000;
}

/* LOGO */
.logo-area {
    position: absolute;
    top: 92px;
    left: 50px;
}

.logo-img {
    width: 260px;
}

/* SEARCH */
.search-bar {
    position: absolute;
    top: 124px;
    right: 100px;
}

.search-bar input {
    width: 220px;
    height: 36px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    padding: 0 44px 0 30px;
}

@media (min-width: 1024px) {
    .search-bar input {
        width: 270px;
        height: 43px;
        border-radius: 30px;
        border: 1.5px solid var(--border);
        padding: 0 45px 0 33px;
    }
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-20%);
}

/* GRID */
.results-grid {
    display: grid;
    grid-template-columns: 184px 1fr;
    gap: 8px;
    align-items: start;
}

/* PROFILE */
.profile {
    display: flex;
}

.profile img {
    width: 130px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

/* TABLE */
.result-table {
    width: 100%;
}

.row {
    display: grid;
    grid-template-columns: 180px 20px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #000000;
    font-size: 14px;
}

/* DESKTOP ONLY */
@media (min-width: 769px) {
    .comma {
        padding-left: 100px;
    }

    .value-name {
        padding-left: 250px;
    }
}

.row:last-child {
    border-bottom: none;
}


/* MOBILE */
@media(max-width:768px) {
    .hero {
        height: 506px;
        background: url("../assets/images/centerverificationmobile.png") no-repeat bottom;
        background-size: cover;
    }

    .logo-area {
        top: 150px;
        left: 30px;
        transform: none;
    }

    .logo-img {
        width: 240px;
       
    }

    .search-bar {
        top: 80%;
        left: 50%;
        transform: translateX(-50%);
    }

    .content {
        padding: 40px 20px;
        background: #e7eaef;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .comma {
        padding-left: 30px;
    }

    .value-name {
        padding-left: 70px;
    }

    .profile img {
        width: 130px;
        height: 180px;
    }

    .profile {
        display: flex;
        justify-content: center;
    }

    .result-table {
        text-align: left;
    }

    .search-icon {
        position: absolute;
        right: -120px;
        top: 50%;
        transform: translateY(115%);
        cursor: pointer;
        font-size: 7px;
    }

    .search-icon img {
        height: 18px;
        width: 18px;
    }

    .row {
        grid-template-columns: 120px 10px 1fr;
        font-size: 13px;
    }
}