/* Poppinsフォントを適用 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* 画面外の要素を非表示に */
    color: #333;
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------- */
/* 1. タイトルとフッター */
/* ---------------------------------------------------- */

.title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer {
    position: absolute;
    bottom: 10px;
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.8rem;
    z-index: 20; /* コンテンツより前面に */
}

/* ---------------------------------------------------- */
/* 2. ログインフォーム */
/* ---------------------------------------------------- */

.login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 350px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #34495e;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.login-button:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
}

/* ---------------------------------------------------- */
/* 3. 背景アニメーションとぼかし */
/* ---------------------------------------------------- */

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;

    /* 💡 背景全体のぼかし（青い四角形が流れる領域全体に適用） */
    filter: blur(8px); 
    -webkit-filter: blur(8px);
}

.squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.squares li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(52, 152, 219, 0.7); /* 青色 (3498db) */
    animation: animate 25s linear infinite;
    bottom: -150px;
}

/* サイズとアニメーションのランダム化 */
.squares li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}
.squares li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}
.squares li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}
.squares li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}
.squares li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}
.squares li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}
.squares li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}
.squares li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}
.squares li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}
.squares li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

/* アニメーションの定義 (下から上へ移動) */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}