* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    height: 100vh;
    background: url('trading-bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dark overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000cc, #001f1fcc);
    z-index: 1;
}

.login-container {
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.logo-area {
    text-align: center;
    color: #00ff99;
    margin-bottom: 20px;
}

.logo-area h1 {
    font-size: 28px;
    text-shadow: 0 0 15px #00ff99;
}

.logo-area p {
    font-size: 14px;
    color: #ccc;
}

.logo {

    width: 100%;
    max-width: 300px;
}

.login-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #00ff99;
    box-shadow: 0 0 25px #00ff99;
    color: white;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #00ff99;
    background: transparent;
    color: white;
    outline: none;
}

input::placeholder {
    color: #aaa;
}

.toggle {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;   /* 🔥 important */
    margin-bottom: 15px;
    font-size: 13px;
}

.options a {
    color: #00ff99;
    text-decoration: none;
}

.options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00ff99;
    box-shadow: 0 0 5px #00ff99;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #00ff99, #00cc66);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    box-shadow: 0 0 20px #00ff99;
}

.signup-text {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
}

.signup-text a {
    color: #00ff99;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6); /* dark background */
    backdrop-filter: blur(8px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999; /* VERY IMPORTANT */
}

.modal-content {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 280px;

    z-index: 10000; /* ensure top layer */
    box-shadow: 0 0 25px #00ff99;
}

.success .modal-content {
    background: #28a745;
}

.error .modal-content {
    background: #dc3545;
}

.modal-content button {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }

    .logo-area h1 {
        font-size: 22px;
    }
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00ff99;
    font-size: 16px;
    transition: 0.3s;
}

.toggle-password:hover {
    text-shadow: 0 0 8px #00ff99;
}

