/*---------------------------------------------------------
Copyright (c) 2026 Hamamatsu Technical High School
Department of Electrical Information
Eita Asai. All rights reserved.
---------------------------------------------------------*/

/*---------------------------------------------------------
//ログインページ用CSS
---------------------------------------------------------*/

@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;600;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");

:root {
    --sky-50: #f7fcff;
    --sky-100: #eaf6ff;
    --sky-200: #d7efff;
    --sky-300: #bfe6ff;
    --sky-400: #9ad6ff;
    --sky-500: #73c3ff;
    --sky-600: #4aa7e8;
    --ink-700: #1f3b4d;
    --ink-500: #35627a;
    --glass: rgba(255, 255, 255, 0.82);
    --shadow: 0 20px 45px rgba(31, 59, 77, 0.15);
    --ring: rgba(115, 195, 255, 0.45);
    --error: #c84b4b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", "Hiragino Maru Gothic Pro", "Meiryo", sans-serif;
    color: var(--ink-700);
    background:
        radial-gradient(1200px 700px at 12% 12%, rgba(191, 230, 255, 0.65), transparent 60%),
        radial-gradient(900px 600px at 88% 18%, rgba(154, 214, 255, 0.45), transparent 55%),
        linear-gradient(160deg, var(--sky-50) 0%, var(--sky-100) 45%, var(--sky-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 48% 52% 60% 40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(191, 230, 255, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.55);
    filter: blur(0.2px);
    opacity: 0.8;
    z-index: 0;
}

body::before {
    top: -70px;
    left: -60px;
    transform: rotate(12deg);
}

body::after {
    bottom: -110px;
    right: -70px;
    transform: rotate(-10deg);
}

.bubble-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 24px rgba(31, 59, 77, 0.08);
    animation: float 20s infinite ease-in-out;
}

.bubble-1 { width: 120px; height: 120px; left: 8%; top: 70%; animation-delay: 0s; }
.bubble-2 { width: 90px; height: 90px; left: 20%; top: 10%; animation-delay: 2s; }
.bubble-3 { width: 140px; height: 140px; left: 75%; top: 20%; animation-delay: 4s; }
.bubble-4 { width: 70px; height: 70px; left: 60%; top: 75%; animation-delay: 6s; }
.bubble-5 { width: 110px; height: 110px; left: 40%; top: 45%; animation-delay: 8s; }
.bubble-6 { width: 60px; height: 60px; left: 12%; top: 35%; animation-delay: 10s; }
.bubble-7 { width: 85px; height: 85px; left: 82%; top: 60%; animation-delay: 12s; }
.bubble-8 { width: 50px; height: 50px; left: 30%; top: 80%; animation-delay: 14s; }
.bubble-9 { width: 100px; height: 100px; left: 55%; top: 5%; animation-delay: 16s; }
.bubble-10 { width: 65px; height: 65px; left: 90%; top: 35%; animation-delay: 18s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.55; }
    50% { transform: translateY(-18px) translateX(10px); opacity: 0.9; }
}

.background-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-popup {
    width: min(420px, 92vw);
    background: var(--glass);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    padding: 28px 26px 30px;
    animation: float-in 700ms ease-out both;
}

.login-popup h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    text-align: center;
    color: var(--ink-500);
    letter-spacing: 0.03em;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.input-container label {
    font-size: 0.92rem;
}

.input-container input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(74, 167, 232, 0.25);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 2px rgba(31, 59, 77, 0.06);
}

.input-container input:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
    border-color: var(--sky-400);
}

.login-btn {
    width: 100%;
    padding: 11px 12px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(31, 59, 77, 0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(31, 59, 77, 0.16);
    filter: brightness(1.02);
}

.error-message {
    margin: 0 0 12px;
    color: var(--error);
    font-size: 0.9rem;
    text-align: center;
}

@keyframes float-in {
    0% {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .login-popup {
        padding: 24px 20px 26px;
        border-radius: 20px;
    }

    .login-popup h2 {
        font-size: 1.2rem;
    }
}
