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

body {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

p.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.login-form {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo svg:hover {
    transform: scale(1.05);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4fb054;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 176, 84, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4fb054 0%, #247d29 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 176, 84, 0.4);
}

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

.links {
    margin-top: 25px;
    text-align: center;
}

.links a {
    color: #4fb054;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #247d29;
    text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
        margin: 10px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    input[type="email"],
    input[type="password"] {
        padding: 12px;
        font-size: 16px; /* iOSでズームを防ぐ */
    }

    .login-btn {
        padding: 12px;
        font-size: 16px;
    }

    .links {
        margin-top: 20px;
    }

    .links a {
        display: block;
        margin: 8px 0;
    }
}

/* ダークモード対応を無効化 - ログイン画面は常にライトモード */
