/* ============================================================
 * kids+work ログイン画面
 * public/css/login.css
 * ============================================================ */

 :root {
    --primary-blue: #3366cc;
    --accent-blue: #6699cc;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --text-main: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-image: url('/img/bg_login_01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-main);
}

/* ===== PC: 左右2列（45:55）===== */
@media (min-width: 769px) {
    body { display: flex !important; min-height: 100vh; align-items: stretch; }
    #login { display: flex !important; width: 100%; min-height: 100vh; }
    .loginArea { display: flex !important; width: 100%; min-height: 100vh; }

    .loginBlock {
        width: 45% !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 40px 32px;
        background: linear-gradient(160deg, #deeaf8 0%, #eaf3fc 50%, #f0f6ff 100%);
        min-height: 100vh;
    }

    .infoBlock {
        flex: 1;
        display: flex !important;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }

    .infoFrame {
        width: 100%;
        height: 100vh;
        border: none;
        display: block;
        flex: 1;
    }
}

/* ===== スマホ: 縦1列 ===== */
@media (max-width: 768px) {
    body { display: block; }
    #login { display: block; }
    .loginArea { display: block; }

    .loginBlock {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        background: linear-gradient(160deg, #deeaf8 0%, #eaf3fc 50%, #f0f6ff 100%);
        border-bottom: 1px solid #ccdff0;
    }

    .infoBlock {
        width: 100%;
        display: block;
        padding: 0;
    }

    .infoFrame {
        width: 100%;
        height: 1100px;
        border: none;
        display: block;
    }
}

/* ===== レイアウト共通 ===== */
.loginBlock .inner {
    width: 100%;
    max-width: 460px;
    animation: fadeInUp 0.5s ease both;
}

.infoBlock .inner {
    width: 100%;
    height: 100%;
    display: flex;
}

/* ===== ロゴ ===== */
.logo-wrap {
    text-align: center;
    margin-bottom: 32px;
}

.logo-wrap img {
    height: 80px;
    object-fit: contain;
}

/* ===== グラスカード ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ===== フォーム ===== */
.input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 15px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 15px 16px 15px 44px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input::placeholder { color: #999; }

.form-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(102, 153, 204, 0.2);
}

/* ===== ログイン維持 ===== */
.remember-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.remember-wrap input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

/* ===== ボタン ===== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(51, 102, 204, 0.35);
    font-family: inherit;
    letter-spacing: 0.05em;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 102, 204, 0.45);
}

.btn-login:active { transform: translateY(0); }

.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-blue);
    border: 1px solid rgba(51, 102, 204, 0.3);
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* ===== フッターカード ===== */
.footer-card {
    margin-top: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}

.footer-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-card a:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
}

/* ===== パスワードリセット ===== */
.reset-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.reset-link:hover { color: var(--primary-blue); text-decoration: underline; }

/* ===== フッターリンク ===== */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-links a {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--primary-blue); text-decoration: underline; }

.footer-sep {
    font-size: 11px;
    color: #ccc;
}

/* ===== エラー表示 ===== */
#errorFlash, .error-area {
    margin-bottom: 14px;
    font-size: 13px;
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== custom.css上書きリセット ===== */
.loginArea .infoBlock .inner {
    width: 100% !important;
    background-color: transparent !important;
    padding: 0 !important;
}
.loginArea .infoBlock .infoFrame {
    height: 100vh !important;
}
.infoBlock .inner {
    max-width: 100% !important;
}
.loginArea .loginBlock,
.loginArea .infoBlock {
    display: flex !important;
}

/* ===== フォーム幅調整 ===== */
.loginBlock .inner {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease both;
}
