/* login.css */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #121212;
    /* match homepage */
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    /* consistent centering */
}

/* Keep the header optional, styled like homepage title */
header {
    text-align: center;
    background-color: transparent;
    /* remove harsh bar */
    padding: 1.5rem 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #00fa9a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.4);
    cursor: pointer;
}

/* Accent bar under title */
header::after {
    content: "";
    display: block;
    height: 3px;
    width: 84px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #00fa9a, rgba(0, 250, 154, 0));
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.login-wrapper {
    background-color: #1e1e1e;
    border-radius: 16px;
    /* slightly rounder */
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.25);
    /* neon glow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
    /* subtle entry */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-text h1 {
    color: #00fa9a;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 0 0 8px rgba(0, 250, 154, 0.35);
}

.flex-r {
    display: flex;
    flex-direction: row;
}

.flex-c {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-box {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.label {
    margin-bottom: 0.3rem;
    color: #cfd8d3;
    /* match tagline color */
    font-size: 0.9rem;
    font-weight: 500;
}

.input {
    display: flex;
    align-items: center;
    background-color: #222;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    outline: none;
    font-size: 1rem;
}

.input i {
    color: #00fa9a;
    margin-left: 0.5rem;
}

.input:focus-within {
    border-color: #00fa9a;
    box-shadow: 0 0 8px rgba(0, 250, 154, 0.4);
}

.btn {
    background-color: #00fa9a;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 1rem;
}

.btn:hover {
    background-color: white;
    transform: translateY(-2px);
}

#message {
    color: #ff8080;
    font-size: 0.9rem;
    text-align: center;
}

.reset_label {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #ccc;
    text-align: center;
}

.extra-line {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.extra-line a {
    color: #00fa9a;
    text-decoration: none;
    margin-left: 0.3rem;
    transition: color 0.2s;
}

.extra-line a:hover {
    color: white;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #1a1a1a;
    font-size: 0.9rem;
    color: #888;
    margin-top: auto;
}

footer a {
    color: #00fa9a;
    text-decoration: none;
    margin: 0 0.3rem;
}

footer a:hover {
    text-decoration: underline;
}

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: "Inter", sans-serif;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    color: white;
    box-shadow: 0 0 18px rgba(0, 255, 170, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    color: #00fa9a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-input {
    padding: 0.7rem;
    margin-top: 1rem;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #222;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-input:focus {
    border-color: #00fa9a;
    box-shadow: 0 0 8px rgba(0, 250, 154, 0.4);
}

.modal-input::placeholder {
    color: #aaa;
}

.modal-save {
    background-color: #00fa9a;
    color: #000;
    font-weight: bold;
    padding: 0.8rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
}

.modal-save:hover {
    background-color: white;
    transform: translateY(-2px);
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 1.5rem;
    }

    .login-text h1 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
}