/* Basic Reset & Page Defaults */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif; /* Common MUI font stack */
    background-color: #f4f4f8; /* A light grey, common for page backgrounds */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 450px; /* Similar to MUI's sm breakpoint, can be adjusted */
    margin-top: 40px; /* sx={{ mt: 5 }} -> 5 * 8px = 40px */
    margin-bottom: 40px;
}

.paper {
    background-color: #ffffff;
    padding: 32px; /* sx={{ padding: 4 }} -> 4 * 8px = 32px */
    border-radius: 12px; /* sx={{ borderRadius: 3 }} -> 3 * 4px = 12px, or a bit more for a softer look */
    box-shadow: 0px 3px 3px -2px rgba(0,0,0,0.2), 
                0px 3px 4px 0px rgba(0,0,0,0.14), 
                0px 1px 8px 0px rgba(0,0,0,0.12); /* Approximates MUI Paper elevation={3} */
    text-align: center;
}

.logo {
    max-width: 150px; /* Adjust as needed */
    margin-bottom: 24px; /* sx={{ mb: 3 }} */
}

/* Typography (approximations) */
.h4-title { /* Typography variant="h4" component="h1" */
    font-size: 2.125rem; /* MUI h4 */
    font-weight: bold; /* sx={{ fontWeight: 'bold' }} */
    margin-bottom: 16px; /* sx={{ mb: 2 }} */
    color: #1976d2; /* Approximating primary.dark - assuming standard MUI blue */
}

.body2-text { /* Typography variant="body2" */
    font-size: 0.875rem; /* MUI body2 */
    color: #666; /* Approximating text.secondary */
    margin-bottom: 16px; /* sx={{ mb: 2 }} */
    margin-top: -8px; /* sx={{ mt: -1 }} */
}

/* Form Elements */
.form-group {
    margin-bottom: 16px; /* Spacing between form elements */
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-control { /* Approximates MUI TextField */
    width: calc(100% - 22px); /* Full width minus padding and border */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px; /* MUI TextField default border-radius */
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #1976d2; /* Primary color for focus */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(25,118,210,.25); /* Focus ring like MUI */
}

.button { /* Approximates MUI Button variant="outlined" */
    display: inline-block;
    width: 100%;
    padding: 10px 16px; /* MUI Button large-ish padding */
    font-size: 0.9375rem; /* MUI Button large font size */
    font-weight: 500; /* sx={{ fontWeight: 'medium' }} */
    line-height: 1.75;
    text-align: center;
    text-transform: uppercase; /* MUI buttons are often uppercase */
    color: #1976d2; /* Primary color for text */
    background-color: transparent;
    border: 2px solid #1976d2; /* sx={{ borderWidth: '2px' }} */
    border-radius: 8px; /* sx={{ borderRadius: '8px' }} */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
    margin-top: 8px; /* sx={{ mt: 1 }} */
}

.button:hover {
    background-color: rgba(25, 118, 210, 0.08); /* sx hover background */
    border-color: #105c9e; /* Darker primary on hover */
}

/* Messages */
.message-base {
    padding: 10px;
    margin-top: 16px; /* sx={{ mt: 1 or 2 }} */
    margin-bottom: 16px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
}

.info-message {
    background-color: #e3f2fd; /* Light blue for info */
    color: #0d47a1; /* Darker blue text */
    border: 1px solid #bbdefb;
}

.success-message {
    background-color: #e8f5e9; /* Light green for success (MUI success.light) */
    color: #2e7d32; /* MUI success.dark */
    border: 1px solid #c8e6c9;
}

.error-message {
    background-color: #ffebee; /* Light red for error (MUI error.light) */
    color: #c62828; /* MUI error.dark */
    border: 1px solid #ffcdd2;
}

.link-button { /* Approximates MUI Link component="button" */
    background: none;
    border: none;
    color: #1976d2; /* Primary color */
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem; /* MUI body2 */
    padding: 0;
}

.link-button:hover {
    color: #105c9e; /* Darker primary on hover */
}

.text-align-right {
    text-align: right;
}

.hidden {
    display: none;
}