/* ==========================================================================
   認証関連画面スタイル - auth.css
   ========================================================================== */

/* ログイン・認証ページの背景 */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 認証フォームコンテナ */
.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
}

.auth-card .card-body {
    padding: 0;
}

/* ロゴ・タイトルエリア */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 14px;
}

/* 認証フォーム */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.auth-form .form-control {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 入力グループアイコン */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #667eea;
}

/* ログインボタン */
.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4299 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Remember Me チェックボックス */
.form-check {
    margin: 20px 0;
}

.form-check-label {
    color: #6c757d;
    cursor: pointer;
}

/* リンク */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* エラーメッセージ */
.auth-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* プロファイル画面 */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: white;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-name {
    font-size: 28px;
    font-weight: 600;
    margin-top: 15px;
}

.profile-email {
    font-size: 16px;
    opacity: 0.9;
}

.profile-info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.profile-info-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 500;
    color: #6c757d;
}

.profile-info-value {
    color: #333;
}

/* パスワード変更フォーム */
.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-weak {
    background-color: #dc3545;
    width: 33%;
}

.password-medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strong {
    background-color: #28a745;
    width: 100%;
}

/* ユーザーリスト */
.user-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.user-list-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.user-role {
    font-size: 14px;
    color: #6c757d;
}

.user-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .profile-header {
        padding: 30px 0;
        text-align: center;
    }
    
    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-info-label {
        margin-bottom: 5px;
    }
}