@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
    --primary-green: #2C5F2D;
    --primary-blue: #1F51A2;
    --ink: #1a1f1d;
    --surface: #f9fbfa;
    --surface-strong: #ffffff;
    --muted: #6a7570;
    --ring: rgba(31, 81, 162, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
    background-color: var(--surface);
    margin: 0;
    color: var(--ink);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #f5f9f7 0%, #f0f8fc 100%);
}

.orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
    display: none;
}

.grid {
    position: absolute;
    inset: 0;
    display: none;
}

.container {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    padding: 2rem;
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 4px 20px rgba(26, 31, 29, 0.08);
    border: none;
    animation: rise 0.6s ease-out;
    margin: auto;
}

.brand {
    display: none;
}

h1 {
    color: var(--primary-green);
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.page-lead {
    margin: 0 0 1.2rem;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(26, 31, 29, 0.2);
    border-radius: 8px;
    background: rgba(249, 251, 250, 0.9);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(26, 31, 29, 0.2);
    border-radius: 8px;
    background: rgba(249, 251, 250, 0.9);
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--ring);
    outline: none;
}

input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--ring);
    outline: none;
}

button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(130deg, var(--primary-green), #1f3f23);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.8rem;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(44, 95, 45, 0.2);
}

.links {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fee;
    color: #b4231d;
    border: 1px solid rgba(217, 48, 37, 0.15);
}

.alert-success {
    background-color: #efe;
    color: var(--primary-green);
    border: 1px solid rgba(44, 95, 45, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.form-note {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-check {
    margin-top: 0.8rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 600;
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

.info-box {
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(31, 81, 162, 0.08);
    color: var(--muted);
    margin: 1rem 0;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(12px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.6rem;
    }

    h1 {
        font-size: 1.3rem;
    }
}
