/**
 * ログインモーダル 共通スタイル
 * assets/css/login-modal.css
 * 全ページ共通のログインモーダルデザイン
 */

.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: loginModalSlideIn 0.3s ease;
}

@keyframes loginModalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: #333;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-modal-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8em;
}

.login-modal-header p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-form-group label {
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
}

.login-form-group input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.login-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-modal-submit {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.login-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-modal-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.login-modal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-modal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-modal-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-modal-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.login-modal-forgot {
    text-align: right;
    margin-top: 8px;
    font-size: 0.85em;
}

.login-modal-forgot a {
    color: #888;
    text-decoration: none;
}

.login-modal-forgot a:hover {
    color: #FF8C00;
    text-decoration: underline;
}

.login-modal-register {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9em;
    color: #666;
}

.login-modal-register a {
    color: #FF8C00;
    font-weight: bold;
    text-decoration: none;
}

.login-modal-register a:hover {
    text-decoration: underline;
}
