/* ベーススタイル */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative; /* 子要素の絶対配置の基準にする */
}

/* ログインカードのコンテナ */
.login-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}
/* フォーム要素の共通設定 */
form {
    margin: 0;
    padding: 0;
}

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    /* 入力欄の操作性を確保 */
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* ブラウザ標準のパスワード表示ボタン（目のアイコン）を確実に有効化 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    pointer-events: auto !important;
}

/* 利用規約エリア */
.terms-container {
    background: #fdfdfd;
    border: 1px solid #f1f1f1;
    padding: 12px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 11px;
    color: #2c3e50;
    max-height: 160px;
    overflow-y: auto;
}

.terms-container h4 {
    margin: 0 0 5px 0;
    font-size: 12px;
}
.terms-container h5 {
    margin: 0;
    font-size: 12px;
}
.terms-container ul {
    padding-left: 18px;
    margin: 5px 0;
}

.terms-note {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 16px;
}
.terms-note {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 16px;
}
input[type=checkbox] {
	width: 14px;
	height: 14px;
	-moz-transform: scale(1.2);
	-webkit-transform: scale(1.2);
	transform: scale(1.2);
    margin-right: 8px;
}


/* ログインボタンの設定 */
button {
    width: 100%;
    padding: 14px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

button:hover {
    background-color: #219150;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}


/* ローディングスピナーのスタイル */
.spinner {
    display: none; /* 通常時は非表示 */
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: calc(50% - 9px);
    left: calc(50% - 9px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 処理中のボタン状態（テキストを隠してスピナーを表示） */
button.loading {
    color: transparent;
    /* pointer-events: none; は入力フォームへの干渉を防ぐため削除 */
}

button.loading .spinner {
    display: block;
}

/* メッセージエリア */
.error-text {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 15px;
    min-height: 1.5em;
    font-weight: bold;
    transition: all 0.3s;
}

/* コピーライトのスタイル：コンテナの外側で最下部に固定 */
.copyright {
    position: absolute;
    bottom: 20px; /* 画面下から20pxの位置 */
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #95a5a6;
    letter-spacing: 0.5px;
    pointer-events: none; /* クリックを邪魔しない */
}

/* スマホなど画面の高さが低い場合にカードと重ならないようにする */
@media (max-height: 750px) {
    body {
        height: auto;
        padding: 40px 0;
    }
    .copyright {
        position: static;
        margin-top: 30px;
    }
}