/* css/passcode.css */

.passcode-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #f2f2f7 !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.passcode-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 60px 40px 40px 40px !important;
    box-sizing: border-box !important;
}

.passcode-header {
    text-align: center !important;
    margin-bottom: 0 !important;
}

.passcode-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 0 20px 0 !important;
}

.passcode-subtitle {
    font-size: 16px !important;
    color: #666 !important;
    margin: 0 !important;
}

.passcode-input-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-grow: 1 !important;
    justify-content: center !important;
}

.passcode-dots {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 60px !important;
}

.passcode-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #c7c7cc !important;
    background-color: transparent !important;
    transition: all 0.2s ease !important;
}

.passcode-dot.filled {
    background-color: #000 !important;
    border-color: #000 !important;
}

.passcode-error {
    color: #ff3b30 !important;
    font-size: 16px !important;
    text-align: center !important;
    margin-top: 20px !important;
    min-height: 20px !important;
}

.passcode-keypad {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-bottom: 40px !important;
}

.key-btn {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.key-btn:active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(0.95) !important;
}

.key-btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.key-btn.key-special {
    font-size: 18px !important;
    font-weight: 400 !important;
}

.passcode-cancel {
    color: #007aff !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 15px !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.passcode-cancel:active {
    opacity: 0.5 !important;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .passcode-container {
        padding: 40px 30px 30px 30px !important;
    }
    
    .passcode-title {
        font-size: 22px !important;
    }
    
    .passcode-dots {
        gap: 15px !important;
        margin-bottom: 50px !important;
    }
    
    .passcode-dot {
        width: 18px !important;
        height: 18px !important;
    }
    
    .key-btn {
        width: 70px !important;
        height: 70px !important;
        font-size: 28px !important;
    }
    
    .passcode-keypad {
        gap: 15px !important;
        max-width: 250px !important;
    }
}

@media (max-width: 360px) {
    .passcode-container {
        padding: 30px 20px 20px 20px !important;
    }
    
    .passcode-title {
        font-size: 20px !important;
    }
    
    .passcode-dots {
        gap: 12px !important;
        margin-bottom: 40px !important;
    }
    
    .passcode-dot {
        width: 16px !important;
        height: 16px !important;
    }
    
    .key-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    .passcode-keypad {
        gap: 12px !important;
        max-width: 220px !important;
    }
}