@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900;1000&family=Roboto:wght@300;400;500;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

nav {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

.fa-solid,
.fas {
    padding: 1px;
    font-size: 25px;
    font-weight: 900;
}

nav ul,
nav ul li {
    outline: 0;
}

nav ul li a {
    text-decoration: none;
}

body {
    font-family: "Nunito", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url("../images/background-banner.gif");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* MAIN — no overflow:hidden so popup is never clipped */
main {
    display: grid;
    grid-template-columns: 26% 75%;
    min-height: 95vh;
    width: 100%;
    margin: 40px;
    background: rgb(254, 254, 254);
    box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.66) inset,
        0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    z-index: 10;
}

.main-menu {
    z-index: 1;
    overflow: hidden;
    background: #223250;
    padding: 30px 0px 30px 30px;
    border-radius: 15px 0 0 15px;
    font-family: "Roboto", sans-serif;
}

.main-menu h1 {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin: 20px 0 30px;
    color: #fff;
    font-family: "Nunito", sans-serif;
}

.logo {
    display: none;
}

nav ul,
nav ul li {
    display: flex;
    flex-direction: column;
    gap: 24px;
    outline: 0;
}

.nav-item {
    position: relative;
    display: block;
}

.nav-item a {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    padding: 15px 0;
    margin-left: 10px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.nav-item b:nth-child(1) {
    position: absolute;
    top: -15px;
    height: 15px;
    width: 100%;
    background: #fff;
    display: none;
}

.nav-item b:nth-child(1)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom-right-radius: 20px;
    background: #223250;
}

.nav-item b:nth-child(2) {
    position: absolute;
    bottom: -15px;
    height: 15px;
    width: 100%;
    background: #fff;
    display: none;
}

.nav-item b:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-right-radius: 20px;
    background: #223250;
}

.nav-item.active b:nth-child(1),
.nav-item.active b:nth-child(2) {
    display: block;
}

.nav-item.active a {
    text-decoration: none;
    color: #000;
    background: rgb(254, 254, 254);
}

.nav-icon {
    width: 60px;
    height: 20px;
    font-size: 20px;
    text-align: center;
}

.nav-text {
    padding-left: 20px;
    display: block;
    width: 120px;
    height: 20px;
}

/* CONTENT */
.content {
    display: none;
    grid-template-columns: 50% 50%;
}

.right-content,
.left-content {
    width: 50%;
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: linear-gradient(135deg, #0f172aeb, #1e3a8a);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100% !important;
    color: #fff;
    text-align: center;
}

.user-img-banner {
    display: block;
    width: 90%;
    margin: 0px auto;
}

.user-img {
    display: block;
    width: 100px;
    margin: 13px auto;
}

.banner-heading {
    color: #000000;
    font-size: 31px;
    font-weight: 800;
}

.banner-heading-1 {
    color: #000000;
    font-size: 31px;
    font-weight: 700;
}

.login-form h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 30px;
}

.login-form p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.login-form input {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.login-form input::placeholder {
    color: #e2e8f0;
}

.login-form .toggle-password {
    position: absolute;
    right: 10px;
    top: 15px !important;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    z-index: 2;
}

.login-form button {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background: #0ea5e9;
}

.links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.links a {
    color: #93c5fd;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Tab sections */
.tab-section {
    display: none;
}

.tab-section.show {
    display: flex !important;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================================
   FORGOT PASSWORD POPUP
   Popup + overlay are outside <main> so overflow:hidden
   on .main-menu never clips them.
   ============================================================ */

#fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
}

#fp-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 400px;
    max-width: 95vw;
    animation: fpIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

#fp-popup input {
    color: #000;
    height: 40px;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 10px;
    width: 100%;
    padding-bottom: 2PX;
}

#fp-popup .passwordcon input {
    width: 100%;
}

.passwordcon {
    GAP: 06PX ! IMPORTANT;
    DISPLAY: FLEX;
    FLEX-DIRECTION: column;
}

.btn-12 {
    width: 100% !important;
}

#fp-popup button {
    width: 100%;
    padding: 10px 3px;
    border-radius: 10px;
    margin-top: 3px;
}

#fp-popup .toggle-password {
    POSITION: absolute;
    TOP: 27%;
    RIGHT: 4%;
    Z-INDEX: 100;
    COLOR: BLACK;
}

@keyframes fpIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Step dots */
.fp-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 18px;
}

.fp-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s, transform 0.3s;
}

.fp-step-dot.active {
    background: #ffffff;
    transform: scale(1.4);
}

.fp-step-dot.done {
    background: #4ade80;
}

/* Success icon */
.fp-done-icon {
    font-size: 52px;
    color: #4ade80;
    margin: 8px 0 14px;
    animation: fpBounce 0.4s cubic-bezier(0.34, 1.6, 0.64, 1) forwards;
}

@keyframes fpBounce {
    from {
        transform: scale(0.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
}

@media (max-width: 1500px) {
    main {
        grid-template-columns: 25% 75%;
    }

    .main-menu h1 {
        display: none;
    }

    .logo {
        display: block;
        width: 164px;
        padding-right: 30px;
        padding-bottom: 70px;
        margin: 13px auto;
    }
}

@media (max-width: 1310px) {
    main {
        grid-template-columns: 25% 75%;
        margin: 30px;
    }
}

@media (max-width: 700px) {
    main {
        grid-template-columns: 15% 85%;
    }
}