:root {
    --eafs-primary-color: #0073aa; /* PHP側で上書きされます */
    --eafs-google-color: #4285f4;
    --eafs-bg-color: #f9f9f9;
    --eafs-text-color: #333;
}

/* コンテナ本体 */
.eafs-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: var(--eafs-bg-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--eafs-text-color);
}

.eafs-container p {
    margin-top: 0;
    margin-bottom: 15px;
}

.eafs-container .eafs-form-group {
    margin-bottom: 15px;
}

.eafs-container .eafs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--eafs-text-color);
    font-size: 13px;
}

/* 入力フィールド */
.eafs-container input.eafs-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    margin: 10px 0;
    color: #333;
    line-height: 1.5;
    height: auto;
    box-shadow: none;
}

.eafs-container input.eafs-input:focus {
    border-color: var(--eafs-primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ボタン共通 */
.eafs-container button.eafs-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s;
    display: block;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
    height: auto;
    box-shadow: none;
}

.eafs-container button.eafs-btn:hover {
    opacity: 0.9;
}

.eafs-container button.eafs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* プライマリボタン */
.eafs-container button.eafs-btn-primary {
    background-color: var(--eafs-primary-color);
    color: #fff;
}

/* セカンダリボタン */
.eafs-container button.eafs-btn-secondary {
    background-color: #fff;
    border: 1px solid var(--eafs-primary-color);
    color: var(--eafs-primary-color);
}

/* Googleボタン */
.eafs-container button.eafs-btn-google {
    background-color: var(--eafs-google-color);
    color: #fff;
    margin-top: 10px;
}

/* 区切り線 */
.eafs-container .eafs-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    border-bottom: 1px solid #ddd;
    height: 1px;
}

.eafs-container .eafs-divider span {
    background: var(--eafs-bg-color);
    padding: 0 10px;
    color: #999;
    font-size: 12px;
    position: relative;
    top: -10px;
}

/* メッセージエリア */
.eafs-container .eafs-message {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.eafs-container .eafs-error {
    background-color: #fdecea;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}

.eafs-container .eafs-success {
    background-color: #edf7ed;
    color: #1e4620;
    border: 1px solid #c3e6cb;
}

/* パスワード忘れリンク */
.eafs-container .eafs-forgot-link {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    display: block;
}

.eafs-container .eafs-forgot-link a {
    color: var(--eafs-primary-color);
    text-decoration: none;
}

/* ログイン完了トースト通知 */
#eafs-login-toast {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: normal;
    z-index: 99999;
    text-align: center;
    white-space: nowrap;
}

/* パスワード表示切り替え・強度チェック */

.eafs-container .eafs-password-wrapper {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.eafs-container .eafs-password-wrapper input.eafs-input {
    padding-right: 40px;
    margin: 0;
}

.eafs-container .eafs-password-wrapper button.eafs-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    width: auto;
    height: auto;
    min-width: auto;
}

.eafs-container .eafs-password-wrapper button.eafs-password-toggle:hover {
    color: #333 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.eafs-container .eafs-strength-meter {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.eafs-container .eafs-strength-weak {
    color: #d32f2f;
}

.eafs-container .eafs-strength-good {
    color: #1e4620;
}
