/* スタイルシート：ログインフォーム (seats_login.css)*/

/* 全体の設定 & レイアウト*/

body {
    font-family: 'Inter', 'Arial', sans-serif; /* Interを追加 */
    background-color: #e4f0c4; /* 全体の背景色 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* アニメーションコンテナ (z-indexを-1で固定) */
#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ログインオーバーレイ: h1と.wrapper-handdrawnを中央に配置するコンテナ */
.login-overlay {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    max-width: 550px;
    box-sizing: border-box;
    z-index: 10;
}

/* メインタイトル (秋田コアビジネスカレッジ) */
.login-overlay > h1 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 0 #B4F8C4, /* 右下の明るい影 */
        -2px -2px 0 #a58e37; /* 左上の濃い影 */
    letter-spacing: 2px;
    padding: 10px 0;
}

/* ログインフォームタイトル */
.wrapper-handdrawn > h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    /* HTMLの<h1>ログイン</h1>に直接適用されることを想定 */
}


/* 手書き風ラッパー (.wrapper-handdrawn) */

.wrapper-handdrawn {
    background-color: #78E9A0; /* スクショの明るい緑 */
    padding: 40px 60px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    width: 90%;
    margin-bottom: 20px;
    z-index: 10;
}

/* 手書き風の枠線と影 */
.wrapper-handdrawn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #a58e37; /* 茶色の枠線 */
    border-radius: 25px;
    box-shadow: 
        3px 3px 0 0 #a58e37,
        -3px -3px 0 0 #a58e37,
        6px 0 0 0 #a58e37,
        -6px 0 0 0 #a58e37,
        0 6px 0 0 #a58e37,
        0 -6px 0 0 #a58e37,
        9px 9px 0 0 #a58e37,
        -9px -9px 0 0 #a58e37,
        9px -9px 0 0 #a58e37,
        -9px 9px 0 0 #a58e37;
    transform: scale(1.02);
    z-index: -1;
}

/* フォームの入力 */
form {
    background-color: white;
    padding: 40px; 
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* メールアドレスとパスワードのコンテナ */
.mailaddress, .password {
    width: 100%;
    position: relative; /* スワードアイコン固定の基準点 */
}

/* 入力フィールドの共通スタイル */
.mailaddress input, .password input {
    box-sizing: border-box;
    border: 4px solid #000; /* 黒色の太線 */
    border-radius: 12px;
    padding: 12px 15px; 
    width: 100%;
    font-size: 16px;
    background-color: white;
    color: #333;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* パスワード入力欄: アイコンのスペースを右側に確保 */
.password input {
    padding-right: 50px; 
}

/* フォーカス時のスタイル */
.mailaddress input:focus, .password input:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.7); 
    border-color: #007bff;
    outline: none;
}

/* アイコン（👁）の固定スタイル*/

/* アイコンボタン（👁）の固定スタイル */
.toggle_password {
    /* 親要素（.password）内で絶対固定 */
    position: absolute;
    
    /* 右端からの位置調整（入力欄の右パディングと合わせる） */
    right: 15px; 
    
    /* 親要素の高さの中央（上から50%）に配置 */
    top: 50%; 
    
    /* アイコン自体の高さを考慮して、完全に中央へ移動 */
    transform: translateY(-50%); 
    
    /* その他の装飾 */
    cursor: pointer;
    border: none;
    background: none;
    color: #4a5568; 
    padding: 0;
    font-size: 1.2rem; /* Font Awesomeアイコンのサイズ調整 */
    z-index: 20; 
}


/*  ログイン*/

/* ログインボタン */
.login\.button {
    background-color: #ff9963; /* ボタンの背景色 */
    color: #333;
    font-weight: bold;
    padding: 12px 20px;
    border: 4px solid #000; /* 太い黒枠 */
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, box-shadow 0.1s;
    box-shadow: 4px 4px 0 0 #000; /* 立体感を出す影 */
    margin-top: 10px;
}

.login\.button:hover {
    background-color: #f9b895;
    /* クリック感を出すために影を少し移動 */
    box-shadow: 2px 2px 0 0 #a58e37; 
    transform: translate(2px, 2px);
}

/* エラー/成功メッセージ */
.wrapper-handdrawn p {
    margin: 10px 0;
}

/* ログイン失敗メッセージ */
.wrapper-handdrawn p[style*="color: red"] {
    font-weight: bold;
    margin-top: 0; /* フォームの上部で表示されるためマージン調整 */
}

/* リンク */

.new_account a, .pass_not a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 2px dashed #333; /* 手書き風の下線 */
    padding-bottom: 2px;
}

.new_account a:hover, .pass_not a:hover {
    color: #007bff;
    border-bottom: 2px dashed #007bff;
}