/* ログインページスタイル */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 20px; /* 上部のpaddingを100px増加 */
}

/* WordPress管理バー対応 */
body.admin-bar .login-body {
    padding-top: 160px; /* 管理バーがある場合は更に40px追加 */
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    animation: fadeInScale 0.5s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo img {
    height: 60px;
    width: auto;
}

.login-title {
    font-size: 1.8rem;
    color: #093053;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.login-form {
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #093053;
    color: white;
}

.btn-primary:hover {
    background: #0a4573;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 48, 83, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #357abd;
    text-decoration: underline;
}

.first-login-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.first-login-info h3 {
    color: #093053;
    font-size: 1rem;
    margin-bottom: 10px;
}

.first-login-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #666;
    font-size: 0.9rem;
}

.login-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* エラーメッセージ */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: shake 0.5s ease;
}

/* 成功メッセージ */
.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ローディング状態 */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #093053;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-form input[type="text"],
    .login-form input[type="password"] {
        font-size: 16px; /* iOSズーム防止 */
    }
}