* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

/* ================= BODY ================= */
body {
    margin: 0;
    min-height: 100vh;
    background: url('trading-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow-x: hidden;
    position: relative;
}

/* ================= OVERLAY ================= */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000cc, #001f1fcc);
    z-index: 1;
    pointer-events: none; /* 🔥 prevent blocking clicks */
}

/* ================= CONTAINER ================= */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

/* ================= LOGO ================= */
.logo-area {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100%;
    max-width: 250px;
}

.logo-area h3 {
    color: #00ff99;
    margin-top: 10px;
}

/* ================= CARD ================= */
.login-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #00ff99;
    box-shadow: 0 0 25px #00ff99;
    color: white;

    max-height: 85vh;
    overflow-y: auto;
}

/* ================= GRID ================= */
.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ================= INPUT GROUP ================= */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff99;
    font-size: 14px;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 50px 14px 45px; /* left icon + right eye */
    background: transparent;
    border: 1px solid #00ff99;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
}

.input-group input::placeholder {
    color: #aaa;
}

.input-group input:focus {
    border-color: #00ff99;
    box-shadow: 0 0 15px #00ff99;
}

/* ================= PASSWORD TOGGLE ================= */
.password-group .toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00ff99;
    font-size: 15px;
    z-index: 5;
    transition: 0.3s ease;
}

.password-group .toggle-password:hover {
    text-shadow: 0 0 8px #00ff99;
}

.password-group .toggle-password i {
    pointer-events: none;
}

/* ================= TERMS ================= */
.terms {
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}

.terms a {
    color: #00ff99;
}

/* ================= BUTTON ================= */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00ff99, #00cc66);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 0 20px #00ff99;
}

/* ================= LOGIN LINK ================= */
.signup-text {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
}

.signup-text a {
    color: #00ff99;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .row-3,
    .row-2 {
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: 10px;
    }

    .login-card {
        padding: 20px;
        max-height: none;
    }

    .input-group input {
        font-size: 13px;
    }
}

/* Make name fields larger */
.row-3 .input-group input {
    height: 52px;         /* 🔥 taller */
    font-size: 15px;      /* bigger text */
    padding-left: 45px;
}

/* ================= LOADER ================= */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
    color: #00ff99;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0,255,153,0.2);
    border-top: 5px solid #00ff99;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ================= FORM ERROR ================= */

.form-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}