/* Reset box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Page background */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3f87a6, #ebf8e1);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form card */
form {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease-in-out;
}

/* Title */
form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 26px;
    font-weight: 600;
}

/* Inputs */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    height: 48px;              /* same height as button */
    padding: 0 15px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Input focus */
form input:focus {
    border-color: #3f87a6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(63,135,166,0.2);
}

/* Button */
form button {
    width: 100%;
    height: 48px;              /* EXACT same height */
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3f87a6, #2f6f8f);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Button hover */
form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Text under form */
form p {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 15px;
}

form a {
    color: #3f87a6;
    text-decoration: none;
    font-weight: 600;
}

form a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form input,
form button {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

