/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3f51b5, #2196f3);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* changed from center */
    padding-top: 40px;         /* add top spacing */
    padding-bottom: 40px;      /* optional bottom spacing */
    box-sizing: border-box;
}

/* Container Styling */
.container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* Title */
.container h1 {
    margin-bottom: 30px;
    color: #3f51b5;
}

/* Form */
.form-box {
    text-align: left;
}

/* Labels */
label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* Inputs and Selects */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #3f51b5;
    outline: none;
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #303f9f;
}

/* Link below form */
.login-link {
    margin-top: 22px;
    font-size: 14px;
    text-align: center;
}

.login-link a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Flash messages */
.flash {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
}

.flash.error, .flash.danger {
    background-color: #f8d7da;
    color: #721c24;
}
