/* ログイン画面のカスタムスタイル */

/* アニメーションの定義 */
@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* HTMLとBodyの基本設定 */
html, body.login {
    min-height: 100vh;
    position: relative;
    overflow: hidden; /* はみ出しを隠す */
}

/* 全体の背景と中央寄せ */
body.login {
    background-color: #a7e0e0; /* 落ち着いた水色 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 浮遊する円の共通スタイル */
html::before, html::after, body.login::before, body.login::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4); /* 色を薄くして固定 */
    z-index: 0;
}

/* 1つ目の円（左上） */
body.login::before {
    width: 250px;
    height: 250px;
    top: -100px;
    left: -80px;
    animation: float 10s ease-in-out infinite;
}

/* 2つ目の円（右下） */
body.login::after {
    width: 350px;
    height: 350px;
    bottom: -150px;
    right: -120px;
    animation: float 13s ease-in-out infinite 1.5s;
}

/* 3つ目の円（左下） */
html::before {
    width: 180px;
    height: 180px;
    bottom: 50px;
    left: -60px;
    animation: float 15s ease-in-out infinite 0.5s;
}

/* 4つ目の円（右上） */
html::after {
    width: 220px;
    height: 220px;
    top: 30px;
    right: -100px;
    animation: float 18s ease-in-out infinite 2.5s;
}

/* ログインフォームのコンテナ */
#login {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* overflow: visible; はデフォルトなので指定不要 */
}

/* 5つ目の円（フォームに重なる） */
#login::before {
    content: '';
    position: absolute;
    z-index: -1; /* フォームの背景より後ろに配置 */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); /* 他より少し濃い白 */
    width: 200px;
    height: 200px;
    top: -50px;
    right: -70px;
    animation: float 12s ease-in-out infinite 1s;
}

/* ロゴのスタイル */
#login h1 a {
    /* ここに実際のロゴ画像のURLを設定してください。例: url('https://your-site.com/wp-content/themes/your-theme/images/your-logo.png') */
    /* ロゴ画像はfunctions.phpで動的に設定されます */
    background-size: contain;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px; /* 中央寄せ */
    display: block;
}

/* フォームの入力フィールド */
#login form .input,
#login form input[type="text"],
#login form input[type="password"] {
    border: 2px solid #FF6347; /* 明るいボーダー */
    border-radius: 10px; /* 角を丸く */
    padding: 12px 15px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* ログインボタン */
#login form .submit #wp-submit {
    background: #32CD32; /* 明るい緑色 */
    color: #FFFFFF; /* 白い文字 */
    border: none;
    border-radius: 15px; /* 角を丸く */
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

#login form .submit #wp-submit:hover {
    background: #228B22; /* ホバー時の色 */
}

/* 不要なリンクを非表示 */
#nav,
#backtoblog {
    display: none; /* パスワードを忘れた場合やブログへのリンクを非表示 */
}

/* 言語選択を非表示 */
.language-switcher {
    display: none; /* 言語選択を非表示 */
}

/* エラーメッセージのスタイル */
.message, #login_error {
    background-color: #ffe0b2; /* 薄いオレンジ */
    border-left: 4px solid #ff9800; /* オレンジのボーダー */
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #333;
}
