body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.container {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #24292e;
    font-weight: 600;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 175, 80, 0.1);
}

/* Password wrapper to relative position the toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Ensure input has padding on the right to avoid text overlapping the button */
.password-wrapper input {
    padding-right: 60px;
    /* Space for the "Show" button */
}

/* Style for the toggle button */
.toggle-password {
    position: absolute;
    right: 10px;
    background: none !important;
    border: none !important;
    color: var(--primary) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    box-shadow: none !important;
}

.toggle-password:hover {
    background: none !important;
    text-decoration: underline !important;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--primary-hover);
}

.toggle-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toggle-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.toggle-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #ffeef0;
    color: #b31d28;
    border: 1px solid #ffdce0;
}

.alert-success {
    background-color: #f0fff4;
    color: #22863a;
    border: 1px solid #dcffe4;
}

/* Modal and Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.terms-content h3 {
    margin-top: 0;
}

.btn-primary {
    display: block;
    margin-top: 20px;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}