/* 1. THE RESET - This stops the overlap */
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #F4EDE4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 650px; /* Wider to give the side-by-side inputs room */
}

/* 2. THE GRID REPLACEMENT (FLEX) */
.form-row {
    display: flex;
    gap: 20px; /* Space between the two columns */
    width: 100%;
    margin-bottom: 5px; /* Space between rows */
}

.input-group {
    display: flex;
    flex-direction: column; /* Label on top of Input */
    flex: 1; /* Makes left and right side equal width */
    margin-bottom: 15px;
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #475569;
    text-transform: uppercase;
}

input, select {
    width: 100%; /* Important: takes up 100% of its half of the row */
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 3. USERNAME STATUS MESSAGES */
.status-msg {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    min-height: 15px; /* Keeps layout stable if empty */
}

.status-available { color: #10b981; }
.status-taken { color: #ef4444; }

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #1B6B52;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
}

.signup-kicker {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.signup-kicker a { color: inherit; text-decoration: none; }
.signup-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.signup-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: #5C5148;
}
.signup-foot a { font-weight: 700; color: #1C1410; }

/* 4. MOBILE VIEW */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}