/* ============================================================================
   Shōnan Ocean Glass — shared design system
   Extends the palette/variables from the original landing page template so
   every screen (landing, auth, dashboard, admin, public bio pages) feels like
   one product instead of three different builds glued together.
   ============================================================================ */

:root {
    /* Ocean Color Palette & Glass Variables */
    --bg-deep: #0a192f;
    --bg-deep-2: #0d1f3c;
    --bg-glass-heavy: rgba(10, 25, 47, 0.65);
    --bg-glass-light: rgba(17, 34, 64, 0.4);
    --bg-glass-solid: #112240;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --text-faint: #5a6a8a;
    --accent: #64ffda;
    --accent-hover: #52e0c4;
    --accent-soft: rgba(100, 255, 218, 0.12);
    --border-glass: rgba(100, 255, 218, 0.15);
    --border-white: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 20px 40px 0 rgba(0, 0, 0, 0.4);
    --focus-ring: rgba(100, 255, 218, 0.3);
    --btn-text: #0a192f;

    --danger: #ff6b81;
    --danger-soft: rgba(255, 107, 129, 0.12);
    --warning: #ffd166;
    --warning-soft: rgba(255, 209, 102, 0.12);
    --success: var(--accent);
    --success-soft: var(--accent-soft);

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

html, body {
    background:
        radial-gradient(circle at 50% 0%, rgba(17, 34, 64, 0.8) 0%, var(--bg-deep) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%2364ffda' fill-opacity='0.03'%3E%3Cpath d='M50 100A50 50 0 0 1 0 50h10a40 40 0 0 0 40 40 40 40 0 0 0 40-40h10a50 50 0 0 1-50 50zm0-20a30 30 0 0 1-30-30h10a20 20 0 0 0 20 20 20 20 0 0 0 20-20h10a30 30 0 0 1-30 30zM100 50a50 50 0 0 1-50-50h10a40 40 0 0 0 40 40h10a50 50 0 0 1-10 10zM0 50A50 50 0 0 0 50 0h-10a40 40 0 0 1-40 40H0v10z'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.3px; color: #ccd6f6; }

/* --- Glassmorphism Base --- */
.glass-panel {
    background: var(--bg-glass-light);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.kanji-watermark {
    position: absolute;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.02);
    font-weight: 800;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    right: -10px;
    bottom: -20px;
    user-select: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-filled {
    background-color: var(--accent);
    color: var(--btn-text);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.2);
}
.btn-filled:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-white);
}
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.btn-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 129, 0.3);
}
.btn-danger:hover { background: rgba(255, 107, 129, 0.22); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 30px; }

/* --- Forms --- */
.field { margin-bottom: 20px; text-align: left; }
.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field input[type="datetime-local"],
.field select,
.field textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; }
.field-checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* --- Alerts / flash messages --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.alert-error   { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(255,107,129,0.3); }
.alert-success { background: var(--success-soft);  color: var(--accent);  border-color: var(--border-glass); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(255,209,102,0.3); }
.alert-info    { background: rgba(255,255,255,0.05); color: var(--text-muted); border-color: var(--border-white); }

/* --- Badges --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-success { background: var(--success-soft); color: var(--accent); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-admin { background: rgba(100,255,218,0.18); color: var(--accent); }

/* --- Simple data table --- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-white);
}
table.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
table.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Scrollbar (subtle, themed) --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100,255,218,0.15); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Focus visibility for keyboard users --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
