/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container */
.container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    /* only applies on desktop */
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

/* Heading */
h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #222;
}

/* Form */
form {
    width: 100%;
}

form input,
form select,
form button {
    width: 100%;
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

form input:focus,
form select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 6px rgba(42, 82, 152, 0.4);
    outline: none;
}

/* Button */
form button {
    background: #2a5298;
    color: #fff;
    border: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

form button:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

form button:active {
    transform: translateY(0);
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile view: full width */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        /* push content from top */
        padding: 0;
    }

    .container {
        width: 100%;
        /* fill the whole screen width */
        max-width: 100%;
        /* override the 420px */
        min-height: 100vh;
        /* full screen height */
        border-radius: 0;
        /* remove rounded edges */
        box-shadow: none;
        /* flat look */
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* center form vertically */
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    form input,
    form select,
    form button {
        font-size: 1.1rem;
        padding: 16px;
    }
}