/* ベーススタイル */
.custom-login-page {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ログイン済みユーザー向け */
.logged-in-content {
    text-align: center;
    padding: 1.5rem;
}

.logged-in-content h1 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.logged-in-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.logged-in-content a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logged-in-content a:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Members Only Notice - 控えめな強調 */
.members-only-notice {
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    background: #fffaf0;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.members-only-notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ed8936;
}

.members-only-notice h2 {
    color: #dd6b20;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.members-only-notice h2::before {
    content: "🔒";
}

.members-only-notice p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ログインフォーム */
.login-form {
    margin-top: 1.5rem;
}

#custom-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#custom-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
}

#custom-login-form input[type="text"],
#custom-login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

#custom-login-form input[type="text"]:focus,
#custom-login-form input[type="password"]:focus {
    border-color: #63b3ed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
    background: #ffffff;
}

#custom-login-form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

#custom-login-form input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    accent-color: #4299e1;
}

#custom-login-form input[type="submit"] {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#custom-login-form input[type="submit"]:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#custom-login-form input[type="submit"]:active {
    transform: translateY(0);
}

.custom-lost-password-link {
    display: block;
    margin-top: 1.5rem;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.custom-lost-password-link:hover {
    color: #4299e1;
}

.custom-lost-password-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #4299e1;
    transition: all 0.2s ease;
}

.custom-lost-password-link:hover::after {
    left: 0;
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .custom-login-page {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}

/* 詳細度を高めたバージョン */
body .custom-login-page .members-only-notice {
    background: #fffaf0 !important; /* テーマのスタイルを確実に上書き */
    border: 1px solid #fed7aa !important;
    border-left: 4px solid #ed8936 !important;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    border-radius: 8px;
    position: relative;
}

body .custom-login-page .members-only-notice h2 {
    color: #dd6b20 !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body .custom-login-page .members-only-notice h2::before {
    content: "🔒";
    font-size: 1em;
}

body .custom-login-page .members-only-notice p {
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
}