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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
    background: #edf2f7;
    overflow-x: hidden;
    color: #2d3748;
    animation: fadeIn .5s ease;
    /* Integrated from bottom */
}

/* ==========================================================
   HEADER
========================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    background: #ffffff;
    height: 78px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.header-inner {
    width: 95%;
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo img {
    height: 52px;
    transition: .3s;
}

.logo img:hover {
    transform: scale(1.03);
}

/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(90deg,
            rgba(8, 18, 30, .75) 0%,
            rgba(8, 18, 30, .45) 40%,
            rgba(255, 255, 255, .05) 100%);
}

/* ==========================================================
   HERO TEXT
========================================================== */

.hero-caption {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    width: 520px;
    z-index: 20;
}

.hero-caption h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-caption p {
    font-size: 18px;
    line-height: 1.8;
    opacity: .95;
}

/* ==========================================================
   STATS
========================================================== */

.hero-stats {
    display: flex;
    gap: 25px;
    margin-top: 45px;
}

.stat {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .15);
    padding: 20px;
    border-radius: 18px;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .25);
}

.stat h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 5px;
}

.stat span {
    color: white;
    opacity: .9;
    font-size: 14px;
}

/* ==========================================================
   LOGIN WRAPPER & MODULE
========================================================== */

.login-wrapper {
    position: absolute;
    right: 0;
    /* Flush right against the screen edge */
    top: 50%;
    transform: translateY(-50%);
    /* Centers vertically between header and footer */
    width: 100%;
    max-width: 780px;
    /* Keeps the card width perfectly proportioned */
    height: auto;
    max-height: calc(100vh - 160px);
    padding: 0;
    /* Removed right padding so it touches the absolute edge */
    z-index: 10;
}

/* ==========================================================
   LOGIN MODULE (RESTORING CARD EDGES FOR THE FLOATING LOOK)
========================================================== */
.login-module {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;

    /* GLASSMORPHISM BASE */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.15);
    /* Adjusted shadow for floating depth */
    animation: none;
}

@media (min-width:1280px) {

    .login-wrapper{
        overflow-y: scroll;
        overflow-x: hidden;
        min-height: 90dvh;
        top: 55%;
        transform: translateY(-50%);
    }
}

.left-panel,
.login-card {
    padding: 25px;
    height: auto;
    /* Let them scale dynamically with the form content */
    /* min-height: 520px; */
    /* Guarantees a consistent, balanced structural height */
}

.login-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Switch to top-start layout so inputs don't stretch drastically */
    padding: 45px 50px;
    /* Balanced internal breathing room */
    overflow-y: auto;
    /* Permits smooth scrolling if screens get very short */
}

.login-module .left-panel {
    background-color: #00bbb4;
}

.login-module .menu-btn {
    display: block;
    list-style: none;
    color: #fff;
    height: 100px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #def5f3;
    padding-top: 20px;
    padding-left: 0px;
    padding-right: 5px;
    font-weight: 500;
    transition: all 0.5s ease;
}

.login-module .menu-btn.active{
    font-weight: 700;
}

.login-card {
    background-color: #fff;
    display: flex;
    padding: 40px 20px 20px 50px !important;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


/* ==========================================================
   LEFT PANEL (THE CONTROL BUTTONS ON THE LEFT SIDE)
========================================================== */


.left-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: white;
    opacity: .25;
}

.panel-header {
    padding: 35px;
    text-align: center;
}

.panel-header img {
    width: 150px;
}

.panel-footer {
    margin-top: auto;
    padding: 35px;
    font-size: 14px;
    opacity: .9;
    line-height: 1.7;
}

/* ==========================================================
   MENU BUTTON
========================================================== */

.menu-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 28px;
    border: none;
    background: none;
    color: #00bbb4;
    cursor: pointer;
    font-size: 16px;
    transition: all .30s ease;
}

.menu-btn span {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.menu-btn i {
    position: relative;
    z-index: 2;
}

.menu-btn i:first-child {
    width: 25px;
    font-size: 20px;
    margin-right: 8px;
}

.menu-btn::before {
    border-radius: 10px;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #80aeae29;
    transition: .35s;
}

.menu-btn.active::before {
    width: 100%;
}

.menu-btn.active .arrow {
    transform: translateX(5px);
}

.menu-btn .fa-chevron-right{
    display: none;
}

.menu-btn {
    position: relative;
    width: 100%;
    padding: 20px 25px;
    background: #00bbb4;
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-btn.active::after {
    content: "";
    position: absolute;
    top: 53%;
    right: -58px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 37px solid transparent;
    border-bottom: 37px solid transparent;
    border-left: 37px solid #00bbb4;
    z-index: 10;
}


/* ==========================================================
   LOGIN CARD
========================================================== */



/* Spacing fix for headings */
.card-top {
    text-align: center;
    margin-bottom: 25px;
}

.card-logo {
    width: 90px;
    margin-bottom: 20px;
}

.card-top h2 {
    font-size: 32px;
    font-weight: 700;
    color: #00bbb4;
    margin-bottom: 10px;
}

.card-top p {
    color: #4d4d4d;
    font-size: 16px;
}

/* ==========================================================
   FORM & INPUT BOX
========================================================== */

#loginForm {
    width: 100%;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #00bbb4;
}

.input {
    display: flex;
    align-items: center;
    /* height:54px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    border-radius:14px;
    overflow:hidden; */
    transition: all .30s ease;

    /* padding-left: 40px !important;
    padding-right: 40px; */

    border-bottom: 1px solid #c4c4c3;
    border-radius: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    line-height: 34px;
    padding: 0;
    height: 50px;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}


.input:hover {
    border-color: #00bbb4;
}

/* .input:focus-within{
    border-color:#00bbb4;
    box-shadow: 0 0 0 4px rgba(13,157,179,.15);
    background:white;
} */

.input i {
    width: 30px;
    text-align: left;
    color: #00bbb4;
    font-size: 21px;
}

.input input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding-right: 18px;
    font-size: 16px;
    color: #dd3068;
    font-weight: 600;
}

.input input::placeholder {
    font-size: 16px;
    color: #7c7c7c;
    font-weight: 650;
}

/* ==========================================================
   OPTIONS
========================================================== */

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 16px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #4d4d4d;
    font-size: 16px;
}

.options input {
    accent-color: #00bbb4;
}

.options label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #7c7c7c;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.options label input[type="checkbox"]:checked {
    background: #00bbb4;
    border-color: #00bbb4;
}

.options label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.options a {
    color: #00bbb4;
    text-decoration: none;
    font-weight: 600;
}

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

/* ==========================================================
   LOGIN BUTTON
========================================================== */

.login-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 5px;
    background: #00bbb4;
    color: white;
    font-size: 18px;
    line-height: 1.42857143;
    padding: 6px 12px;
    font-weight: 400;
    cursor: pointer;
    /* box-shadow: 0 12px 25px rgba(13,157,179,.25); */
    box-shadow: none;
    transition: all .30s ease;
}

/* .login-button:hover{
    transform:translateY(-3px);
    box-shadow: 0 35px 90px rgba(0,0,0,.28), 0 10px 30px rgba(0,0,0,.10);
}

.login-button:active{
    transform:scale(.98);
} */

/* ==========================================================
   DIVIDER & REGISTER
========================================================== */

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #4d4d4d;
}

.divider span {
    padding: 0 18px;
    color: #4d4d4d;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-section {
    text-align: center;
}

.register-section p {
    color: #4d4d4d;
    margin-bottom: 14px;
    font-size: 16px;

}

.register-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 5px;
    background: #00bbb4;
    color: white;
    font-size: 18px;
    line-height: 1.42857143;
    padding: 6px 12px;
    font-weight: 400;
    cursor: pointer;
    /* box-shadow: 0 12px 25px rgba(13, 157, 179, .25); */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .30s ease;
}

/* .register-btn:hover{
    background:linear-gradient(90deg, #00a7c0, #00bbb4);
    color:white;
    box-shadow: 0 15px 35px rgba(13,157,179,.20);
} */

/* ==========================================================
   ADMIN INFO & ERROR
========================================================== */

.admin-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    /* Slightly more solid white glass accent */
    border-radius: 14px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.admin-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00bbb4;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-info h4 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #1f2937;
}

.admin-info p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-extra {
    display: none;
    margin-top: 20px;
    /* Creates a clean gap below the form elements */
    animation: fadeIn .35s ease;
}

.login-extra.active {
    display: block;
}

/* ==========================================================
   FOOTER & UTILITIES
========================================================== */

.login-footer {
    position: absolute;
    bottom: 25px;
    left: 8%;
    /* Matches the exact left alignment offset of your hero caption */
    z-index: 25;
}

.footer-content {
    color: white;
    font-size: 14px;
    opacity: .85;
    text-align: left;
    /* Aligns left to drop neatly below your hero description text */
}

.glass {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ==========================================================
   CUSTOM SCROLLBAR
========================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f7;
}

::-webkit-scrollbar-thumb {
    background: #00bbb4;
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: #087f91;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #000000;
}

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

@media (max-width: 1280px) {

    .hero-caption {
        width: 380px;
    }

    .hero-caption h1 {
        font-size: 42px;
    }

    .login-wrapper {
        max-width: 700px;
    }

    .login-card {
        padding: 40px;
    }

}

@media (max-width: 1024px) {

    .hero-caption {
        display: none;
    }

    .login-wrapper {

        position: relative;

        left: auto;
        right: auto;
        top: auto;

        transform: none;

        width: 100%;

        max-width: 760px;

        margin: 110px auto 40px;

        padding: 0 20px;

    }

    .hero {

        min-height: 100vh;
        height: auto;

    }

    .login-module {

        width: 100%;

    }

}

/* ==========================================================
   MOBILE (768px and below)
========================================================== */

@media (max-width:768px) {

    body {
        background: #edf2f7;
    }

    .hero {

        display: block;

        min-height: 100dvh;

        height: auto;

        overflow: visible;

        padding-top: 80px;
        padding-bottom: 30px;

    }

    .hero-image {

        position: fixed;

        inset: 0;

    }

    .hero-image img {

        object-position: center;
    }

    .hero-overlay {

        background: rgba(8, 18, 30, 0);

    }

    .hero-caption {

        display: none;

    }

    .login-wrapper {

        position: relative;

        top: auto;
        right: auto;
        left: auto;

        transform: none;

        width: 100%;

        max-width: 460px;

        margin: 0 auto;

        padding: 15px;

        max-height: none;

    }

    .login-module {

        flex-direction: column;

        border-radius: 22px;

        overflow: hidden;

        backdrop-filter: blur(18px);

    }

    .left-panel {

        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        width: 100%;

        min-height: 72px;

        padding: 8px;

    }

    .left-panel::before {

        display: none;

    }

    .panel-header {

        display: none;

    }

    .panel-footer {

        display: none;

    }

    .menu-btn {

        flex: 1;

        height: 56px;

        border-radius: 14px;

        justify-content: center;

        gap: 8px;

        padding: 0 10px;

    }

    /* .menu-btn span {

        font-size: 14px;

        font-weight: 600;

    } */

    .menu-btn span{
        font-size: 18px;
    }

    .menu-btn .arrow {

        display: none;

    }

    .login-card {

        min-height: auto;

        padding: 30px 22px;

    }

    .card-logo {

        width: 70px;

    }

    .card-top {

        margin-bottom: 20px;

    }

    .card-top h2 {

        font-size: 26px;

    }

    .card-top p {

        font-size: 14px;

    }

    .field {

        margin-bottom: 16px;

    }

    .field label {

        font-size: 16px;

    }

    .input {

        height: 52px;

    }

    /* .input i {

        width: 48px;

        font-size: 16px;

    } */

    .input input {

        font-size: 15px;

    }

    .options {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }

    .login-button {
        height: 52px;
        font-size: 16px;
    }
    
    .register-btn {
        font-size: 16px;
        height: 52px;
    }

    .admin-info {

        padding: 14px;

    }

    .login-module .menu-btn{
        border-bottom: none;
    }

    .login-footer {

        position: relative;

        left: auto;

        bottom: auto;

        margin: 20px 0;

        text-align: center;

    }

    .footer-content {

        text-align: center;

    }


      .menu-btn.active::after {
        top: auto;
        bottom: -20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);

        border-top: 20px solid #00bbb4;
        border-right: 20px solid transparent;
        border-left: 20px solid transparent;
        border-bottom: 0;
    }

    .divider span,
    .register-section p{
        font-size: 16px;
    }
}

/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width:480px) {

    .header {

        height: 64px;

    }

    .header-inner {

        justify-content: center;

    }

    .logo img {

        height: 38px;

    }

    .login-wrapper {

        padding: 10px;

    }

    .login-card {

        padding: 22px 16px;

    }

    .card-logo {

        width: 60px;

    }

    .card-top h2 {

        font-size: 22px;

    }

    .card-top p {

        font-size: 13px;

    }

    .menu-btn {

        height: 50px;

        padding: 0 6px;

    }

    .menu-btn i:first-child {

        display: none;

    }

    /* .menu-btn span {

        font-size: 13px;

    } */

    .input {

        height: 48px;

    }

    .login-button {

        height: 48px;

    }

    .register-btn {

        height: 46px;

    }

}

@media (max-width: 576px) {

    .header {

        height: 70px;

    }

    .logo img {

        height: 42px;

    }

    .login-wrapper {

        margin-top: 85px;

        padding: 10px;

    }

    .login-card {

        padding: 25px 18px;

    }

    .card-top h2 {

        font-size: 24px;

    }

    .card-top p {

        font-size: 14px;

    }

    .field {

        margin-bottom: 16px;

    }

    .input {

        height: 50px;

    }

    /* .input i {

        width: 48px;

        font-size: 16px;

    } */

    .input input {

        font-size: 14px;

    }

    .login-button {

        height: 50px;

        font-size: 15px;

    }

    .register-btn {

        height: 48px;

    }

    .admin-info {

        padding: 14px;

        gap: 12px;

    }

    .admin-icon {

        width: 40px;

        height: 40px;

        font-size: 18px;

    }

}

@media (max-width: 400px) {

    .menu-btn {

        font-size: 13px;

        padding: 16px 8px;

    }

    .menu-btn span {

        font-size: 12px;

    }

    .card-top h2 {

        font-size: 22px;

    }

    .card-logo {

        width: 60px;

    }

}