/* RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

/* CONTAINER */
#login,
#register {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* CARD */
.card {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    animation: fadeIn 0.6s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TITLE */
.card h2 {
    margin-bottom: 25px;
    font-weight: 600;
}

/* INPUT */
.card input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 15px;

    border-radius: 10px;
    border: none;
    outline: none;

    background: #0f172a;
    color: white;

    transition: 0.2s;
}

/* INPUT FOCUS */
.card input:focus {
    box-shadow: 0 0 0 2px #38bdf8;
}

/* ERROR TEXT */
#error {
    color: #f87171;
    font-size: 14px;
    margin-bottom: 10px;
}

/* BUTTON */
.card button {
    width: 100%;
    padding: 10px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;

    font-weight: 600;
    cursor: pointer;

    transition: 0.25s;
}

/* BUTTON HOVER */
.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* LINK SECTION */
.card div {
    margin-top: 15px;
    font-size: 14px;
}

/* LINK */
.card a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}