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

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
}

/* CENTER CONTAINER */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* CARD */
.card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.4),
        inset 0 0 10px rgba(255,255,255,0.05);
    animation: fadeIn 0.5s ease;
}

/* TITLE */
h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* INPUT + SELECT */
input, select {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid transparent;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    transition: 0.3s ease;
}

select option {
    background-color: #203a43; /* Match theme background */
    color: #fff;
}

/* INPUT PLACEHOLDER */
input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* INPUT FOCUS */
input:focus, select:focus {
    border: 1px solid #ff7e5f;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 10px rgba(255,126,95,0.4);
}

/* BUTTON */
button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* BUTTON HOVER */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,126,95,0.5);
}

/* BUTTON ACTIVE */
button:active {
    transform: scale(0.96);
}

/* LINK (TOGGLE SIGN IN/UP) */
a {
    color: #ffb347;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #ffd27f;
}

/* TARGET BOX */
#targetBox {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
    animation: fadeIn 0.4s ease;
}

/* LOADER OVERLAY */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Darker "bloack" overlay */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff7e5f;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CENTER TEXT */
.center {
    text-align: center;
}

/* SUCCESS TEXT */
h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }

    h2 {
        font-size: 20px;
    }

    button {
        font-size: 14px;
    }
}