/* General Body Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
}

/* Layout for the login page to center the form */
.login-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Add padding to the body for pages with a fixed header */
body.page-with-header {
    padding-top: 60px; /* Match header height */
}

/* Main Content Container (shared by all pages) */
.container {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* For pages with a header, center the container and add margin */
.page-with-header .container {
    margin: 30px auto;
}

/* Header Styles */
.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo { font-size: 20px; font-weight: 600; color: #2d3748; }

.logout-button {
    background-color: #4A5568;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.logout-button:hover { background-color: #2D3748; }

h1 { font-size: 24px; font-weight: 600; color: #2d3748; margin: 0 0 24px 0; }
p { font-size: 16px; color: #4a5568; line-height: 1.5; }

.input-group { margin-bottom: 20px; }

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
}

button:hover { background-color: #3182ce; }
#registerBtn { background-color: #63b3ed; }
#message { margin-top: 20px; font-weight: 500; }
.error { color: #e53e3e; }
.success { color: #38a169; }

.form-switch {
    padding-left: calc(50% + 24px);
}

.form-switch .form-check-input {
    cursor: pointer;
}