/* ====== Reset & Base Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: rgb(26, 31, 44);
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;

    backdrop-filter: blur(3px) brightness(0.7);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ====== Main Container ====== */
main {
    background-color: rgb(43, 51, 70);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(0, 0, 0);
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 380px;
    padding: 2em;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* ====== Heading ====== */
main h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 25px;
}

/* ====== Form ====== */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

table {
    border-collapse: collapse;
    margin-bottom: 10px;
}

td {
    padding: 10px;
}

td img {
    width: 25px;
    vertical-align: middle;
    opacity: 0.7;
}

/* ====== Inputs ====== */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 220px;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: rgb(26, 31, 44);
}

/* ====== Button ====== */
button {
    margin-top: 10px;
    background-color: rgb(26, 31, 44);
    width: 65%;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0.2em;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: rgb(24, 24, 25);
    transform: scale(1.05);
    transition: background-color 0.3s, transform 0.2s;
}

/* ====== Links ====== */
a {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    main {
        width: 90%;
        padding: 30px 20px;
    }

    input[type="text"],
    input[type="password"] {
        width: 100%;
    }

    td img {
        width: 20px;
    }
}
