/* General page styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #2a1a3e;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Center the form container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px); /* Space for header/footer */
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
}

/* Form section styling */
.login-section {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(107, 91, 149, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-section h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

.login-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #6b5b95;
    margin: 10px auto;
}

.login-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    text-align: left; /* Labels left-aligned */
}

.form-row label {
    color: #d4d4dc;
    font-size: 1rem;
    margin-bottom: 5px;
}

.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="tel"],
.form-row select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #6b5b95;
    background: #16213e;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center; /* Center input text */
}

.options {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
}

.options label {
    color: #d4d4dc;
}

.options a,
.register-link a {
    color: #ffffff;
    text-decoration: none;
}

.options a:hover,
.register-link a:hover {
    color: #b19cd9;
}

.login-btn {
    background: #6b5b95;
    color: #fff;
    padding: 8px 20px; /* Smaller, crisp button */
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    margin: 10px auto 0; /* Centered with slight top margin */
    display: block;
}

.login-btn:hover {
    background: #feb236;
}

.register-link {
    margin: 15px 0;
    font-size: 0.9rem;
}

.social-login {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #d4d4dc;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    background: #16213e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #6b5b95;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-section {
        padding: 20px;
    }
    .login-btn {
        padding: 8px 15px;
    }
}