/* パスワード認証画面のスタイル */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #002244);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header .auth-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.3s;
    font-family: var(--font-family);
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 1.1rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: var(--font-family);
}

.auth-submit-btn:hover {
    background-color: #002244;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.8rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
    border: 1px solid #ffcdd2;
}

.auth-error.show {
    display: block;
    animation: shake 0.5s;
}

.auth-footer {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 1.5rem;
}

/* コンテンツの非表示 */
.content-hidden {
    display: none !important;
}

/* シェイクアニメーション */
@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: 768px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.3rem;
    }

    .auth-header .auth-icon {
        font-size: 2.5rem;
    }
}
