/* ベースのリセットとフォント設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------- */
/* --- 1. 背景画像 (Logistics_r6_c4.png) と中央寄せの設定 --- */
/* ---------------------------------------------------- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    min-height: 100vh;
    
    /* カードの中央寄せを保証 */
    display: flex;
    justify-content: center; /* 横方向中央 */
    align-items: center;     /* 縦方向中央 */
    
    /* 背景画像を適用 */
    background-color: transparent; 
    /* ※ファイル名を .png に変更してサーバーに配置してください */
    background-image: url('Logistics_r6_c4.png'); 
    background-size: cover;      
    background-attachment: fixed; 
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* 背景画像の上に暗いオーバーレイを重ねて、テキストの視認性を高める */
body::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 黒を40%の不透明度で重ねる */
    z-index: -1; 
}

/* ---------------------------------------------------- */
/* --- 2. ログインカード（透過・モダンデザイン） --- */
/* ---------------------------------------------------- */
.login-card {
    /* 透過性の白（10%の不透明度） */
    background-color: rgba(255, 255, 255, 0.1); 
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 12px;
    
    /* 影を強くして背景に浮かび上がらせる */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
    
    z-index: 10;
    position: relative;
    
    /* 今風の透過感：背景をぼかす効果 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ヘッダー周り */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* ヘッダーテキストの色を白、影付きにして視認性確保 */
.login-header h1,
.login-header p,
.login-header .instruction {
    color: white !important; 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); 
}
.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.login-header p {
    font-size: 0.9rem;
}
.login-header .instruction {
    margin-top: 1rem;
    font-weight: bold;
}

/* ---------------------------------------------------- */
/* --- 3. 入力フォームの統一（インデント・デザイン） --- */
/* ---------------------------------------------------- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left; /* ★ラベルを左揃えにする */
}

.form-group label {
    color: white !important; 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    
    /* 入力フィールドも透過的なデザインに */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1); 
    color: white; /* 入力文字の色を白に */
    border-radius: 6px;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #007bff; 
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3); 
    background-color: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


/* ---------------------------------------------------- */
/* --- 4. ボタンエリアのデザイン刷新 --- */
/* ---------------------------------------------------- */
.button-group {
    display: flex;
    flex-direction: column; /* ボタンを縦に並べる */
    gap: 10px;
    margin-top: 2rem;
}

/* ボタン共通スタイル */
.btn {
    cursor: pointer;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    width: 100%;
}
.btn:active {
    transform: translateY(1px);
}

/* 「実行」ボタン (btn-primary) */
.btn-primary {
    /* 視認性の高い緑色 */
    background-color: #28a745; 
    color: white;
    /* 立体感のためのシャドウを追加 */
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4); 
}
.btn-primary:hover {
    background-color: #1e7e34; /* ホバー時はさらに濃い緑 */
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.6); 
    transform: translateY(-2px);
}

/* 「取消」ボタン (btn-secondary) */
.btn-secondary {
    /* 透過背景に合わせたデザイン */
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 不要なスタイルを非表示 */
.btn-outline, .header-image {
    display: none; 
}
.login-wrapper {
    padding: 0 20px; 
    max-width: 100%; 
}