/* Lumin ログイン画面スタイル */

/* エラーハンドリング用のCSS */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #1e293b;
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.login-header h1 .role-badge {
    -webkit-text-fill-color: initial !important;
    color: white !important;
}

.login-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 116, 139, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.3);
}

.test-account {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.test-account h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.test-account p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.test-account code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
}

.system-info {
    text-align: center;
    margin-top: 25px;
    color: #6c757d;
    font-size: 0.9rem;
}

.system-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.system-info a:hover {
    color: #764ba2;
    text-decoration: underline;
}


/* ロールバッジのスタイル */
.role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-badge:hover {
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* レスポンシブデザイン */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .form-group input {
        padding: 12px;
    }
    
    .btn {
        padding: 12px;
    }
}

/* ============================================
   ロール別スタイル（紫グラデーション廃止）
   ============================================ */

/* システム管理者 */
.login-admin .login-header h1 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-admin .btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.login-admin .btn:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.login-admin .role-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    -webkit-text-fill-color: initial !important;
    color: white !important;
}


/* 給与管理者 */
.login-manager .login-header h1 {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-manager .btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.login-manager .btn:hover {
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.login-manager .role-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    -webkit-text-fill-color: initial !important;
    color: white !important;
}

/* ユーザー */
.login-user .login-header h1 {
    background: linear-gradient(135deg, #059669, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-user .btn {
    background: linear-gradient(135deg, #059669, #047857);
}

.login-user .btn:hover {
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.login-user .role-badge {
    background: linear-gradient(135deg, #059669, #047857) !important;
    -webkit-text-fill-color: initial !important;
    color: white !important;
}