
/* ======================================
   GLOBAL RESET
====================================== */

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

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;

    background: url("/static/images/img/bg_color.webp") center center / cover no-repeat fixed;
    background-color: #f0f4ff;
}

/* ======================================
   NAVBAR
====================================== */

#nbar {
    width: 100%;
    padding: 10px 0;
    background: rgba(8, 10, 20, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: sticky;
    top: 0;
    z-index: 999;
}

.login-nav-container {
    width: 92%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-i {
    width: 95px;
    height: 65px;
    object-fit: contain;
}

/* Desktop links */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

#nbar .nav-link {
    color: #d7dcf4;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

#nbar .nav-link:hover {
    color: #ffffff;
}

/* Mobile menu button */

.boc {
    display: none;
    padding: 10px 13px;
    border-radius: 9px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);

    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* ======================================
   MOBILE MENU
====================================== */

#mbmenu {
    display: none;
    width: 100%;
    padding: 10px 5%;

    background: rgba(8, 10, 20, 0.98);

    position: absolute;
    top: auto;
    left: 0;
    z-index: 998;

    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

#mbmenu.show {
    display: block;
}

#mbmenu a {
    display: block;
    padding: 15px 10px;

    color: #d7dcf4;
    text-decoration: none;
    font-size: 15px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#mbmenu a:last-child {
    border-bottom: none;
}

#mbmenu a:hover {
    color: #ffffff;
}

/* ======================================
   LOGIN CONTAINER
====================================== */

.portal-container {
    width: 92%;
    max-width: 450px;

    margin: 65px auto;
    padding: 35px;

    background: rgba(255,255,255,0.96);

    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;

    box-shadow: 0 15px 45px rgba(0,0,0,0.18);

    position: relative;
    z-index: 1;
}

/* Heading */

.portal-container h1 {
    color: #2563eb;
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

/* Description */

.portal-container > p {
    color: #64748b;
    font-size: 15px;
    text-align: center;
    margin-bottom: 28px;
}

/* ======================================
   LOGIN FORM
====================================== */

#studentForm {
    width: 100%;
}

/* Labels */

#studentForm label {
    display: block;
    margin: 17px 0 8px;

    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

/* Inputs and Select */

#studentForm input,
#studentForm select {
    display: block;
    width: 100%;
    height: 50px;

    padding: 12px 14px;
    margin: 0;

    background: #ffffff;
    color: #334155;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    font-size: 15px;
    font-family: inherit;

    outline: none;
    transition: all 0.3s ease;
}

/* Placeholder */

#studentForm input::placeholder {
    color: #94a3b8;
}

/* Focus */

#studentForm input:focus,
#studentForm select:focus {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ======================================
   CONTINUE BUTTON
====================================== */

#studentForm button {
    width: 100%;
    height: 50px;

    margin-top: 25px;
    padding: 12px;

    background: linear-gradient(135deg, #2563eb, #4f46e5);

    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 16px;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;
    transition: all 0.3s ease;
}

#studentForm button:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

#studentForm button:active {
    transform: scale(0.98);
}

/* ======================================
   ERROR MESSAGE
====================================== */

#studentForm #message {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

/* ======================================
   TABLET RESPONSIVE
====================================== */

@media (max-width: 768px) {

    body {
        background-attachment: scroll;
    }

    .portal-container {
        margin: 50px auto;
        padding: 30px;
    }

    .portal-container h1 {
        font-size: 27px;
    }

    .logo-i {
        width: 85px;
        height: 55px;
    }
}

/* ======================================
   MOBILE RESPONSIVE
====================================== */

@media (max-width: 576px) {

    #nbar {
        padding: 8px 0;
    }

    .login-nav-container {
        width: 94%;
    }

    .logo-i {
        width: 75px;
        height: 50px;
    }

    .desktop-nav {
        display: none;
    }

    .boc {
        display: block;
    }

    .portal-container {
        width: 92%;
        margin: 35px auto;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .portal-container h1 {
        font-size: 24px;
    }

    .portal-container > p {
        font-size: 13px;
        margin-bottom: 23px;
    }

    #studentForm label {
        font-size: 13px;
    }

    #studentForm input,
    #studentForm select {
        height: 47px;
        font-size: 14px;
    }

    #studentForm button {
        height: 47px;
        font-size: 15px;
    }
}

/* ======================================
   SMALL MOBILE
====================================== */

@media (max-width: 360px) {

    .portal-container {
        width: 94%;
        padding: 20px 16px;
    }

    .portal-container h1 {
        font-size: 21px;
    }

    .logo-i {
        width: 68px;
    }
}
