/* ログイン画面用CSS - パスワード表示機能の追加 */

/* パスワード入力フィールド */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 45px !important; /* 目のボタンのスペース確保 */
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    font-size: 1rem;
    z-index: 10;
}

.toggle-password:hover {
    color: #333;
}

.toggle-password:focus {
    outline: none;
    color: #667eea;
}

.toggle-password:active {
    transform: scale(0.95);
}

/* 一時的なエラー・成功メッセージ */
.temp-error-message,
.temp-success-message {
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ローディング状態のボタン */
.login-btn:disabled {
    background-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.login-btn:disabled:hover {
    background-color: #6c757d !important;
    transform: none;
    box-shadow: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .toggle-password {
        padding: 6px;
        font-size: 0.9rem;
        right: 8px;
    }
    
    .password-input input {
        padding-right: 40px !important;
    }
}