@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Background */
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, #C0E0D6, #A8E6CF);
}

/* Login box */
.box {
    position: relative;
    width: 380px;
    height: 500px;
    background: #1b1b1b;
    border-radius: 8px;
    overflow: hidden;
}

/* Neon animated borders (KEEP ORIGINAL COLORS) */
.box::before{ content: ''; position: absolute; top: -50%; left: -50%; width: 380px; height: 420px; background: linear-gradient(0deg, transparent, transparent, #D4AF37, #D4AF37, #D4AF37); z-index: 1; transform-origin: bottom right; animation: animate 6s linear infinite; } 
.box::after{ content: ''; position: absolute; top: -50%; left: -50%; width: 380px; height: 420px; background: linear-gradient(0deg, transparent, transparent, #D4AF37, #D4AF37, #D4AF37); z-index: 1; transform-origin: bottom right; animation: animate 6s linear infinite; animation-delay: -3s; } 
.borderLine::before{ content: ''; position: absolute; top: -50%; left: -50%; width: 380px; height: 420px; background: linear-gradient(0deg, transparent, transparent, #2E8B57, #2E8B57, #2E8B57); z-index: 1; transform-origin: bottom right; animation: animate 6s linear infinite; animation-delay: -1.5s; } 
.borderLine::after { content: ''; position: absolute; top: -50%; left: -50%; width: 380px; height: 420px; background: linear-gradient(0deg, transparent, transparent, #2E8B57, #2E8B57, #2E8B57); z-index: 1; transform-origin: bottom right; animation: animate 6s linear infinite; animation-delay: -4.5s; } 
@keyframes animate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Form */
.box form {
    position: absolute;
    inset: 4px;
    background: #0A1A3F;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.box form h2 {
    color: #00b388;       /* BRAND COLOR */
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

/* Input container */
.inputBox {
    position: relative;
    width: 100%;
    margin-top: 35px;
}

.inputBox input {
    width: 100%;
    padding: 20px 40px 10px 10px; /* space for eye icon */
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;              /* visible text */
    caret-color: #00e0c7;
    font-size: 1em;
    z-index: 3;                  /* 🔑 ABOVE i */
    position: relative;
}


.inputBox span {
    position: absolute;
    left: 0;
    padding: 20px 0 10px;
    pointer-events: none;
    color: #888;
    transition: 0.4s;
}

.inputBox input:focus ~ span,
.inputBox input:valid ~ span {
    color: #00b388;     /* brand teal */
    font-size: .75em;
    transform: translateY(-30px);
}

.inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1e2a78;
    border-radius: 4px;
    pointer-events: none;
    transition: 0.5s;
    z-index: 1;              /* 🔑 BEHIND TEXT */
}

.inputBox input:focus ~ i,
.inputBox input:valid ~ i {
    height: 45px;
}

/* Links */
.links {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.links a {
    font-size: 0.8em;
    color: #aaa;
    text-decoration: none;
}

.links a:hover {
    color: #00b388; /* brand highlight */
}

/* Submit Button */
#submit {
    margin-top: 20px;
    padding: 10px;
    background: linear-gradient(90deg, #1e2a78, #002d9c);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#submit:hover {
    background: linear-gradient(90deg, #00b388, #00e0c7);
}

/* Error box */
.error {
    background: rgba(255,60,60,0.2);
    padding: 10px;
    border-left: 3px solid #ff2770;
    color: #ff8fa3;
    margin-bottom: 10px;
}


/* MAIN container for centering everything */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centers logo */
    justify-content: center; /* Centers vertically */
    min-height: 100vh;
}

/* Logo styling */
.logo-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.logo-wrap img {
    width: 270px;
    height: auto;

    /* Convert to white
    filter: brightness(0) invert(1) opacity(0.9) */

            /* Keep your glow */
            drop-shadow(0 0 8px rgba(0,255,200,0.35));
}


/* Ensure text & cursor always visible */
.inputBox input {
    color: #ffffff;                 /* force visible text */
    caret-color: #00e0c7;            /* visible cursor */
}

/* Chrome / Edge autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Password toggle */
.password-box {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 24px;
    background: none;
    border: none;
    color: #00e0c7;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;   /* ABOVE everything */
}


.toggle-pass:hover {
    opacity: 0.85;
}
