/* Modern Login Page Styles */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.loginpage {
    background: #0866c6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'メイリオ', 'Meiryo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-title {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 40px 0;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
}

.login-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px 35px;
    width: 100%;
    position: relative;
}

.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.user-select-wrapper {
    position: relative;
}

.user-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.user-select {
    width: 100%;
    height: 48px;
    padding: 12px 40px 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    background: #ffffff;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.user-select:focus {
    outline: none;
    border-color: #0866c6;
}

.password-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    height: 48px;
    padding: 12px 50px 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    background: #ffffff;
    color: #000;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    outline: none;
    border: 2px solid #000;
}

.password-input::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

.login-button {
    width: 100%;
    height: 48px;
    background: #9bb5ff;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
    background: #8aa5ff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.login-button:active {
    transform: scale(0.98);
}

.login-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #c33;
    font-size: 14px;
    text-align: center;
    display: none;
}

.login-error.show {
    display: block;
}

.login-footer {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    margin-top: 30px;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
}

/* Hide default select arrow for better styling */
.user-select-wrapper select::-ms-expand {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-form-container {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
}

