body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
}
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    background-color: #fff;
    padding-left: 15px;
    padding-right: 15px;
}
.logo {
    font-family: 'Jua', sans-serif;
    font-weight: bold;
    font-size: 1.8em;
    margin-right: 20px;
    color: #333;
}
/* --- Login Form Styles --- */
#login-container {
    display: block;
    max-width: 320px;
    width: 90%;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#login-container h2 {
    font-family: 'Jua', sans-serif;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: #333;
}
#login-container input[type="text"],
#login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}
#login-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}
#login-container button:hover {
    background-color: #0056b3;
}
#login-container button:disabled { /* Style for disabled button */
     background-color: #cccccc;
     cursor: not-allowed;
}
#login-container h4 {
    font-family: 'Jua', sans-serif;
    margin-top: 30px;
    font-size: 0.85em;
    color: #777;
    font-weight: normal;
}
 #login-container h4 a {
    color: #555;
    text-decoration: none;
}
#login-container h4 a:hover {
    text-decoration: underline;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}
.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
}
.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal-message {
    font-size: 1.1em;
    /* Keep color neutral or slightly warning, not necessarily red for DB connection issues */
    color: #555;
    margin-bottom: 20px;
}
 .modal-message.error { /* Add specific class for login errors */
    color: #d9534f; /* Error color (reddish) */
 }
 .modal-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
 }
 .modal-button:hover {
    background-color: #0056b3;
 }

.remember-id {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.remember-id input[type="checkbox"] {
    margin-right: 5px;
}

.remember-id label {
    cursor: pointer;
}