﻿body {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.app-title {
    display: inline-block;
    background: linear-gradient( 135deg, #0f766e, #14b8a6 );
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    margin: 12px auto;
    animation: softPulse 2.5s infinite;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 480px;
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

    .logo-section img {
        height: 70px;
    }

    .logo-section h2 {
        margin-top: 15px;
        color: #1f2937;
        font-weight: 700;
    }

    .logo-section p {
        color: #6b7280;
    }

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    width: 45px;
    justify-content: center;
}

.form-control {
    height: 48px;
    border-radius: 6px;
}

    .form-control:focus {
        box-shadow: 0 0 0 3px rgba(37,99,235,.15);
        border-color: #2563eb;
    }

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .captcha-box img {
        width: 220px;
        height: 50px;
        border: 1px solid #ddd;
    }

.refresh-btn {
    background: none;
    color: #2563eb;
    font-size: 24px;
    border: none;
}

.btn-login {
    width: 100%;
    height: 50px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: .3s;
}

    .btn-login:hover {
        background: #157347;
    }

.links-section {
    margin-top: 20px;
    text-align: center;
}

    .links-section a {
        display: block;
        margin-top: 8px;
        text-decoration: none;
        color: #2563eb;
        font-weight: 600;
    }

.register-section {
    margin-top: 20px;
    text-align: center;
}

    .register-section a {
        color: #198754;
        font-weight: 700;
        text-decoration: none;
    }



.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 430px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    padding: 35px;
}

.login-head {
    display: none;
}

.form-login-heading {
    text-align: center;
    margin-bottom: 15px;
}

    .form-login-heading span {
        display: block;
        color: #000;
    }

.form-group label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.form-control {
    height: 46px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    box-shadow: none;
    padding-left: 40px;
    font-size: 16px;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 5px rgba(13,110,253,.20);
    }

.form-icon {
    position: absolute;
    z-index: 5;
    margin-top: 15px;
    margin-left: 12px;
}

#imgCaptcha {
    width: 130px !important;
    height: 45px !important;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
}

#btnRefreshCaptcha {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 145deg, #203a5b, #102a4d );
    text-decoration: none !important;
    box-shadow: 0 6px 15px rgba(16,42,77,.35), inset 0 1px 2px rgba(255,255,255,.25);
    transition: all .3s ease;
    position: relative;
}

    #btnRefreshCaptcha i {
        color: #ffffff !important;
        font-size: 20px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        line-height: 1;
    }

    #btnRefreshCaptcha:hover {
        transform: translateY(-2px);
        background: linear-gradient( 145deg, #27456a, #16365f );
        box-shadow: 0 10px 20px rgba(16,42,77,.45);
    }

        #btnRefreshCaptcha:hover i {
            animation: refreshSpin .8s linear;
        }

@keyframes refreshSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#btnRefreshCaptcha:active {
    transform: scale(.95);
}

#btnlogin {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 6px;
    background: #198754;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
}

    #btnlogin:hover {
        background: #157347;
    }

.registration {
    text-align: center;
}

    .registration a,
    .checkbox a {
        text-decoration: none;
        font-weight: 600;
    }

.checkbox {
    display: block;
    text-align: center;
}

.pull-right {
    float: none !important;
}

.left-side {
    display: none;
}

.overlay {
    display: none;
}

.container {
    width: 100%;
}

.ab-flex {
    justify-content: center;
}

.login-page .col-md-6 {
    width: 100%;
    max-width: 430px;
    margin: 0 auto !important;
}

.text-danger {
    font-size: 12px;
}

/* =========================
   OTP PAGE
========================= */

.otp-page {
    min-height: calc(100vh - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.otp-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
    padding: 40px;
}

    .otp-card .logo-section {
        text-align: center;
        margin-bottom: 30px;
    }

        .otp-card .logo-section img {
            height: 75px;
        }

    .otp-card h2 {
        color: #102a4d;
        font-weight: 700;
        margin-top: 20px;
    }

    .otp-card p {
        color: #64748b;
    }

.otp-form-group {
    margin-top: 20px;
}

    .otp-form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 10px;
    }

.otp-input {
    width: 100%;
    height: 60px;
    border: 2px solid #2563eb;
    border-radius: 12px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 8px;
    font-weight: 600;
}

    .otp-input:focus {
        outline: none;
        box-shadow: 0 0 10px rgba(37,99,235,.20);
    }

.otp-submit-btn {
    width: 100%;
    margin-top: 20px;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #102a4d;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

    .otp-submit-btn:hover {
        background: #16375f;
    }

.otp-timer {
    margin-top: 15px;
    font-weight: 600;
    color: #0d6efd;
    text-align: center;
}

.otp-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.otp-resend-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #e5d48a;
    color: #555;
    font-weight: 600;
}

    .otp-resend-btn:not(:disabled) {
        background: #198754;
        color: white;
    }

.otp-back-btn {
    flex: 1;
    height: 48px;
    text-decoration: none;
    border-radius: 10px;
    background: #3e4d6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

    .otp-back-btn:hover {
        color: white;
    }

.otp-note {
    margin-top: 20px;
    background: #f8fafc;
    border-left: 4px solid #102a4d;
    padding: 12px;
    border-radius: 8px;
    color: #475569;
}

.otp-submit-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: .8;
}

.otp-resend-btn:disabled {
    background: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

.password-wrapper {
    position: relative;
}

.password-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: .3s;
}

    .password-eye:hover {
        color: #102a4d;
    }

.captcha-container {
    margin-top: 8px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.captcha-image-box {
    flex-shrink: 0;
}

.captcha-or {
    white-space: nowrap;
    font-weight: 700;
}

.captcha-separator {
    font-weight: 700;
    color: #6b7280;
    font-size: 14px;
}

.math-captcha {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    color: #102a4d;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
    .math-captcha i {
        margin-right: 6px;
        color: #0d6efd;
    }

#TxtSecurityCode {
    margin-top: 12px;
}

body.background-image {
    background-image: url('/Images/login-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.registration-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.registration-card {
    width: 1000px;
    max-width: 95%;
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.input-wrapper {
    position: relative;
}

    .input-wrapper .form-control {
        padding-left: 45px;
    }

.registration-card .col-md-6 {
    margin-bottom: 18px;
}
.registration-control {
    height: 44px;
    padding-left: 42px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    font-size: 14px;
}

.registration-input-wrapper {
    position: relative;
}

.registration-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 15px;
    z-index: 10;
}

.btn-register {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #198754;
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: .3s;
}

    .btn-register:hover {
        background: #157347;
    }

.registration-header {
    text-align: center;
    margin-bottom: 25px;
}

.registration-logo {
    height: 75px;
}

.registration-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #102a4d;
}

.registration-subtitle {
    color: #64748b;
}

.registration-card .captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.registration-card .captcha-image-box {
    flex-shrink: 0;
}

.registration-card .captcha-or {
    font-weight: 700;
    color: #102a4d;
    white-space: nowrap;
}

.registration-card .math-captcha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #102a4d;
    font-weight: 700;
    white-space: nowrap;
}

    .registration-card .math-captcha i {
        color: #0d6efd;
    }

.registration-card .captcha-image {
    width: 130px;
    height: 45px;
}

.registration-captcha-container {
    width: 100%;
    margin-top: 10px;
}

.registration-card .captcha-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.registration-card .captcha-or {
    font-weight: 700;
    color: #102a4d;
}

.registration-card .math-captcha {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #102a4d;
}

.registration-captcha-code {
    width: 500px;
    max-width: 80%;
    margin: 0 auto;
}

.registration-captcha-input {
    text-align: center;
}

.registration-security-section {
    margin-top: 25px;
    text-align: center;
}

.registration-captcha-container {
    width: 100%;
    margin: 15px 0 20px;
}

    .registration-captcha-container .captcha-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

.registration-captcha-code {
    width: 450px;
    max-width: 100%;
    margin: 0 auto;
}

.registration-captcha-input {
    text-align: center;
}

.registration-card .captcha-image {
    width: 280px;
    height: 50px;
}

.registration-card .math-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #102a4d;
}

.registration-card .captcha-or {
    font-weight: 700;
    color: #102a4d;
}

.registration-card #imgCaptcha {
    width: 200px !important;
    height: 50px !important;
}

.change-password-captcha-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.change-password-math {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #102a4d;
}

.change-password-code {
    width: 450px;
    margin: 20px auto 0;
    text-align: center;
}

.change-password-security-section {
    text-align: center;
    margin-top: 15px;
}

.change-password-captcha-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.change-password-code {
    width: 420px;
    max-width: 100%;
    margin: 25px auto 0;
}

    .change-password-code label {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .change-password-code input {
        text-align: center;
    }

.forgot-password-card {
    width: 700px;
    max-width: 90%;
}

.nhb-footer {
    position: relative;
    width: 100%;
    background: rgba(8, 47, 73, 0.95);
    backdrop-filter: blur(12px);
    border-top: 2px solid #14b8a6;
    padding: 14px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
}

    .footer-content a {
        color: #f8fafc;
        text-decoration: none;
        transition: color .3s ease;
    }

        .footer-content a:hover {
            color: #14b8a6;
        }

.footer-divider {
    color: rgba(255,255,255,.4);
}
body {
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 36px;
}

.footer-title {
    font-weight: 600;
    font-size: 14px;
}

.footer-subtitle {
    font-size: 12px;
    opacity: .85;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 13px;
}

    .footer-links a:hover {
        color: #40c4aa;
    }

.login-background::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
}

.footer-left,
.footer-center {
    color: #ffffff;
    font-weight: 500;
}


.footer-center {
    opacity: .85;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .footer-links span {
        color: rgba(255,255,255,.5);
    }

.home-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.login-wrapper {
    position: relative;
}

.bookmark-tabs {
    position: absolute;
    top: 50%;
    right: -125px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.bookmark-tab {
    width: 170px;
    background: linear-gradient( 135deg, #003b63, #005ca9 );
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    white-space: nowrap;
    overflow: hidden;
    transition: all .35s ease;
    position: relative;
    border-radius: 50px 12px 12px 50px;
}

    .bookmark-tab i {
        width: 24px;
        text-align: center;
        font-size: 19px;
        vertical-align: middle;
    }

.bookmark-text {
    opacity: .85;
    margin-left: 10px;
}

.bookmark-tab:hover {
    width: 280px;
    transform: translateX(18px);
    background: linear-gradient( 135deg, #005ca9, #0078d4 );
    box-shadow: 0 10px 20px rgba(0,92,169,.35), 0 0 15px rgba(0,120,212,.25);
    color: #fff;
    text-decoration: none;
    z-index: 999;
}

.bookmark-tab:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-right: 12px solid #003b63;
    display: none;
}

.bookmark-tab:hover:before {
    border-right-color: #005ca9;
}

.resource-page {
    min-height: 100vh;
    padding: 40px;
}

.resource-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: rgba(255,255,255,.95);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.resource-header {
    border-bottom: 2px solid #005ca9;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

    .resource-header h2 {
        color: #003b63;
        margin: 0;
    }

    .resource-header p {
        color: #6b7280;
        margin-top: 8px;
    }

.resource-page {
    min-height: 100vh;
    padding: 40px;
}

.resource-container {
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.resource-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #005ca9;
    padding-bottom: 10px;
}

    .resource-header h2 {
        color: #003b63;
    }

.resource-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.95);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,.10);
}

.resource-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resource-logo {
    height: 55px;
}

.resource-title h3 {
    margin: 0;
    color: #003b63;
    font-size: 22px;
    font-weight: 700;
}

.resource-title span {
    color: #6b7280;
}

.btn-home {
    background: #003b63;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

    .btn-home:hover {
        background: #005ca9;
        color: white;
        text-decoration: none;
    }

.feedback-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eef6ff;
    color: #003b63;
    border-left: 4px solid #005ca9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.feedback-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-submit-feedback {
    background: #198754;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
}

.btn-cancel-feedback {
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .resource-header h2 {
        margin: 0;
    }

.btn-home {
    white-space: nowrap;
}

.template-section {
    margin-bottom: 35px;
}

    .template-section h3 {
        color: #003b63;
        font-weight: 700;
        margin-bottom: 20px;
        border-left: 5px solid #14b8a6;
        padding-left: 12px;
    }

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
}

.template-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: all .3s ease;
    border-top: 4px solid #14b8a6;
}

    .template-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,.15);
    }

.template-name {
    font-size: 16px;
    font-weight: 700;
    color: #003b63;
    margin-bottom: 15px;
}

.btn-template {
    display: inline-block;
    background: #005ca9;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}

    .btn-template:hover {
        color: white;
        background: #0078d4;
        text-decoration: none;
    }

.circular-upload-card {
    max-width: 850px;
    margin: auto;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.upload-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .upload-header h4 {
        margin: 0;
        color: #0f314d;
        font-weight: 700;
    }

    .upload-header p {
        margin: 0;
        color: #6c757d;
    }

.upload-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0f6c7b, #2bbcb1 );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.pdf-upload-box {
    border: 2px dashed #0f6c7b;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    background: #f8fbfc;
    transition: .3s;
}

    .pdf-upload-box:hover {
        background: #eef9fa;
    }

    .pdf-upload-box i {
        font-size: 48px;
        color: #dc3545;
        margin-bottom: 10px;
    }

    .pdf-upload-box input[type=file] {
        margin-top: 15px;
    }

.upload-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0f6c7b, #2bbcb1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.upload-header h3 {
    margin: 0;
    font-weight: 700;
    color: #0f314d;
}

.upload-header p {
    margin: 0;
    color: #6c757d;
}