body{
    width: 100vw;
    height: 100vh;
    background-image: url("/images/money.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.main{
    width: 35vw;
    height: 40vh;
    border-radius: 3px;
    margin: auto;
    box-shadow: 2px 2px 5px black,
                inset 1.5px 1.5px 5px white;
    background-color: rgba(245, 243, 243, 0.062);
    backdrop-filter: blur(10px); 
    display: flex;
    flex-direction: column;
    opacity: 1;
}
button{
    align-items: center;
    padding: 8px 16px;
    margin-left: 20%;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    font-family: "Iceberg", sans-serif;
    font-size: medium;
    font-weight: 400;
    background: linear-gradient(to bottom right, rgb(226, 136, 33), rgba(255, 255, 255, 0.178));
}
h1{
    display: flex;
    justify-content: center;
    font-family: "Wallpoet", sans-serif;
}
form{
    width: 50%;
    height: auto;
    padding: 2%;
}
.sum_main{
    height: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#logo{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    margin-right: 10%;
    margin-top: 5%;
}
.ani,.ani1{
    width: 50px;
    height: 50px;
    position: absolute;
}
.sum_main2 img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.sum_main2{
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}
input{
    border: none;
    border-radius: 3px;
    padding: 7px;
    margin: 6%;
    font-size: 12px;
    border: none;
    font-family: "Electrolize", sans-serif;
}

.login-error{
    display: block;
    color: #ff0000;
    margin: 4px 0 8px 6%;
    font-family: "Electrolize", sans-serif;
    font-size: 12px;
}

.packet{
  width: 40vw;
  height: 50vh;
  opacity: 0;
  top: -50%;
  position: absolute;
  background-color: rgba(253, 253, 253, 0.171);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  box-shadow: 1px 2px 5px black,
           inset 1px 1px 3px white;
}
svg{
  width: 40vw;
  height: 50vh;
  top: -30px;
  position: absolute;
  display: block;
}
.lock1{
  width: 5%;
  height: 8%;
  top: 2%;
  background-color: rgb(48, 48, 48);
  position: inherit;
}
.lock2{
  width: 5%;
  height: 8%;
  top: 2%;
  right: 0%;
  background-color: rgb(48, 48, 48);
  position: inherit;
}


/* =================================
   EXPENSEPILOT LOGIN UI IMPROVEMENTS
================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Electrolize", sans-serif;
}

/* Login heading */
h1 {
    margin-top: 25px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Main login card */
.main {
    width: min(420px, 90%);
    min-height: 260px;
    height: auto;
    margin: 25px auto;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(20, 25, 35, 0.38);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Form and logo section */
.sum_main {
    min-height: 225px;
    height: auto;
    align-items: center;
    justify-content: space-around;
}

form {
    width: 70%;
    padding: 8px;
}

/* Input fields */
input {
    width: 90%;
    padding: 11px 12px;
    margin: 10px 5%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 13px;
    transition: 0.25s ease;
}

input:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
    background: #ffffff;
}

input::placeholder {
    color: #666;
}

/* Login button */
button {
    display: block;
    width: 90%;
    margin: 15px 5%;
    padding: 11px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #f5a623, #e47b20);
    color: #171717;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: scale(0.97);
}

/* Logo */
#logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin: 0 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

/* Error message */
.login-error {
    color: #ff7777;
    font-size: 12px;
    line-height: 1.5;
    margin-left: 5%;
}

/* Mobile responsive */
@media (max-width: 600px) {
    body {
        min-height: 100vh;
        width: 100%;
    }

    h1 {
        font-size: 25px;
        margin-top: 35px;
    }

    .main {
        width: 92%;
        max-width: 420px;
        min-height: 250px;
        padding: 10px;
    }

    .sum_main {
        min-height: 220px;
    }

    form {
        width: 75%;
    }

    #logo {
        width: 48px;
        height: 48px;
        margin-right: 5px;
    }

    input {
        font-size: 12px;
    }

    .packet {
        width: 90vw;
    }

    svg {
        width: 90vw;
    }
}

@media (max-width: 360px) {
    .sum_main {
        flex-direction: column;
        padding-bottom: 15px;
    }

    form {
        width: 100%;
    }

    #logo {
        margin: 8px auto;
    }
}


/* =========================================
   RESPONSIVE LOGIN PAGE
   Existing GSAP animations remain unchanged
========================================= */

/* Prevent horizontal overflow */
html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* Keep login card above the packet */
.main {
    position: relative;
    z-index: 2;
}

/* Packet stays behind the login card */
.packet {
    z-index: 1;
}

/* Keep heading visible */
h1 {
    position: relative;
    z-index: 2;
}

/* SVG follows packet dimensions */
.packet svg {
    width: 100%;
    height: 100%;
    left: 0;
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 768px) {

    h1 {
        font-size: 28px;
    }

    .main {
        width: 80%;
        max-width: 420px;
        min-height: 240px;
    }

    .sum_main {
        min-height: 200px;
    }

    form {
        width: 75%;
    }

    #logo {
        width: 55px;
        height: 55px;
    }

    .packet {
        width: 55vw;
        height: 42vh;
    }

    .packet svg {
        width: 100%;
        height: 100%;
    }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 600px) {

    body {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
    }

    h1 {
        font-size: 25px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    /* Responsive packet position.
       The existing GSAP x:75% and y:180%
       animations are not changed. */
    .packet {
        position: fixed;

        width: 90vw;
        height: 40vh;

        top: -50vh;
        left: -62.5vw;

        border-radius: 8px;
    }

    .packet svg {
        position: absolute;

        top: -30px;
        left: 0;

        width: 100%;
        height: calc(100% + 30px);
    }

    /* Responsive locks */
    .lock1,
    .lock2 {
        width: 6%;
        height: 9%;
        top: 2%;
    }

    /* Login card */
    .main {
        width: 92%;
        max-width: 420px;

        min-height: 230px;
        height: auto;

        margin: 20px auto;
        padding: 12px;

        border-radius: 12px;
    }

    .sum_main {
        width: 100%;
        min-height: 200px;
        height: auto;

        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        gap: 8px;
    }

    /* Form */
    form {
        width: 78%;
        padding: 5px;
    }

    input {
        width: 100%;
        margin: 9px 0;
        padding: 11px;

        font-size: 13px;
    }

    button {
        width: 100%;
        margin: 12px 0;
        padding: 11px;

        font-size: 16px;
    }

    /* Logo */
    #logo {
        width: 48px;
        height: 48px;

        margin: 0;
        flex-shrink: 0;
    }

    .login-error {
        font-size: 11px;
        margin-left: 0;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media screen and (max-width: 360px) {

    h1 {
        font-size: 22px;
    }

    .main {
        width: 94%;
        padding: 10px;
    }

    .sum_main {
        gap: 5px;
    }

    form {
        width: 80%;
    }

    #logo {
        width: 40px;
        height: 40px;
    }

    input {
        padding: 9px;
        font-size: 12px;
    }

    button {
        font-size: 15px;
    }
}
