body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", "Microsoft JhengHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #3a4759; /* Main dark background */
    color: #273346;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #d9d9d9;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #c8d0db;
}

.header-logo {
    height: 40px; /* Adjusted based on visual proportion */
    margin-right: 15px;
}

.header-title {
    font-size: 22px; /* Adjusted based on visual proportion */
    color: #3a4759; /* Dark blue-gray text */
    font-weight: 600;
    margin: 0;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.signup-form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #495057; /* Dark gray for labels */
    margin-bottom: 6px;
}

.form-group .label-unit {
    font-weight: normal;
}

.form-group .label-bold {
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    color: #212529; /* Dark text for input values */
    background-color: #fff;
    border: 1px solid #ced4da; /* Light gray border */
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control::placeholder {
    color: #adb5bd; /* Lighter gray for placeholder */
    opacity: 1;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 35px; /* Make space for custom arrow */
}

.btn-accounts {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #5a7698; /* Medium blue-gray button */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-accounts:hover {
    background-color: #49627e; /* Darker shade on hover */
}

.accounts-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #4D668D; /* Matches label color */
    text-decoration: none;
    margin-top: 20px;
}

.accounts-link:hover {
    text-decoration: underline;
}

.footer {
    background-color: #6180B0;
    color: #ffffff;
    padding: 20px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
}

.footer p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .header-title {
        font-size: 20px;
    }

    .login-form-container {
        margin: 20px; /* Add some margin on smaller screens */
        padding: 25px;
    }

    .signup-form-container {
        max-width: 100%;
        padding: 20px;
    }
}

.avatar-xl {
  height: 7.5rem;
  width: 7.5rem;
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .header-logo {
        margin-bottom: 5px;
        height: 35px;
    }

    .header-title {
        font-size: 18px;
    }

    .login-form-container {
        padding: 20px;
    }

    .signup-form-container {
        max-width: 100%;
        padding: 20px;
    }

    .form-group label, .forgot-password-link {
        font-size: 13px;
    }

    .form-control, .btn-login {
        font-size: 15px;
    }

    .footer {
        font-size: 12px;
        padding: 15px;
    }
}
